Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fs.Stats mode attribute #3045
Not just file permissions, see below. Octal doesn't have anything to do with it, it's a number.
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: