Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Does fs.chmod have any effect on Windows platform?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mariusz Nowak  
View profile  
 More options Oct 9 2012, 10:03 am
From: Mariusz Nowak <mari...@medikoo.com>
Date: Tue, 9 Oct 2012 07:03:58 -0700 (PDT)
Local: Tues, Oct 9 2012 10:03 am
Subject: Does fs.chmod have any effect on Windows platform?

fs.lchmod is only available on OSX, while fs.chmod is available on all
platforms still it seems to have no effect on Windows.
Is it just noop there? Or it has some effect in some cases?

If anyone knows the answer I'll be grateful. Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Oct 9 2012, 10:14 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Tue, 9 Oct 2012 16:13:54 +0200
Local: Tues, Oct 9 2012 10:13 am
Subject: Re: [nodejs] Does fs.chmod have any effect on Windows platform?

On Tue, Oct 9, 2012 at 4:03 PM, Mariusz Nowak <mari...@medikoo.com> wrote:
> fs.lchmod is only available on OSX, while fs.chmod is available on all
> platforms still it seems to have no effect on Windows.
> Is it just noop there? Or it has some effect in some cases?

> If anyone knows the answer I'll be grateful. Thanks.

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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mariusz Nowak  
View profile  
 More options Oct 9 2012, 10:19 am
From: Mariusz Nowak <mari...@medikoo.com>
Date: Tue, 9 Oct 2012 07:19:17 -0700 (PDT)
Local: Tues, Oct 9 2012 10:19 am
Subject: Re: [nodejs] Does fs.chmod have any effect on Windows platform?

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
(?)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bert Belder  
View profile  
 More options Oct 9 2012, 11:43 am
From: Bert Belder <bertbel...@gmail.com>
Date: Tue, 9 Oct 2012 08:43:45 -0700 (PDT)
Local: Tues, Oct 9 2012 11:43 am
Subject: Re: [nodejs] Does fs.chmod have any effect on Windows platform?

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »