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.

- Bert

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to