From: Daniel Berger Date: 2005-10-03T06:21:46+09:00 Subject: Re: chmod on Windoze ogilthorpe@davie.textdrive.com wrote: > Can we flesh this out just a little bit more though? The impression that > I've always gotten is that it isn't really possible to map across from the > Unix permission mechanism to the one implemented on Windows. The bits > that you set when you chmod something don't really translate directly into > some of the more complex permissions that you can set on Windows systems, > right? Correct. For whatever reason MS decided to support a limited form of chmod where you could make a file read-only, which probably just calls SetFileAttributes() behind the scenes. I'm not sure why they did this, other than to try to be more *nix compatible. In the end I think it just confuses people. > So I don't think that Ruby (or anybody else) can hope to have a permission > handling aspect that is both cross-platform and correct. Am I wrong? No, you're not wrong. Regards, Dan