This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
fs.Stats mode attribute #3045
Labels
Comments
Not just file permissions, see below. Octal doesn't have anything to do with it, it's a number. From
|
To see just the permissions in the standard octal format, you can do |
Nice trick isaacs. You should include this snippet in the docs -the page I've posted- the show how to read the file permissions. But unfortunately, you can't use octal literals like 0777 in strict mode. So, to avoid octal literals we can use parseInt: |
+1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
fs.Stats
Can someone explain what is the mode attribute number? In theory, the mode are the file permissions but they're not in octal mode due to strict mode restrictions. Then, how should I interpret the mode attribute?
Thanks.
The text was updated successfully, but these errors were encountered: