On Tuesday, October 9, 2012 4:14:05 PM UTC+2, Ben Noordhuis wrote:
> fs.chmod() on windows is not exactly a no-op, it just doesn't do much.
> You can flip the read and write bits and that's it.
I fact, you can only flip the write bit. If you take it away, the readonly
bit is set on the file.
On Tuesday, October 9, 2012 4:19:17 PM UTC+2, Mariusz Nowak wrote:
> Thanks, that clarifies. I understand that is also works for files only? at
> least I think there's no effect when trying to change bits for directories
It works on directories as well, but the effect of the readonly bit is
different for directories. It will still be possible to remove the
directory, create new files in it etc., but new files that are added
"inherit" the readonly bit from the directory they are created in.