I'm looking for a quality npm module to easily work with file permissions 
in a cross-platform capable manner.

I need to be able to read get set read/write/execute file permissions for 
current user, but it has to be valid for all platforms (or at least 
Linux/Mac/Windows).

If I look in google I see that fs.stats()'s Stats mode value is platform 
specific. I find various snippets of code but most do just simple Linux 
chmod-type changes.

So I would like this wrapped-up in a way that abstracts the different 
platform oddities in a dependable api. 

Ideally it'd provide a way to check if certain permissions even make sense 
on the current platform. This so my test cases based on permission changes 
don't mess up on unsupported changes (like trying to make and test for a 
Windows non-executable).

This feels like a solved problem, but I can't find the module I'm looking 
for. 

Does anybody know something that does this?

If this is not available then I'd also be happy with some pointers or a URL 
to a doc or blog that properly explain how to work with cross-platform file 
permissions using fsStat() and fs.chmod().

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to