-
-
Save kamilogorek/94fc37d23eef344ccc00 to your computer and use it in GitHub Desktop.
permissions-article-gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initial mode: 0666(8) = 110110110(2) // user r/w, group r/w, other r/w | |
Process mask: 022(8) = 000010010(2) | |
Reversed process mask: 0755(8) = 111101101(2) // user r/w/x, group r/x, other r/x | |
Initial mode AND reversed mask: 0644(8) = 110100100(2) // user r/w, group r, other r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initial mode: 0777(8) = 111111111(2) // user r/w/x, group r/w/x, other r/w/x | |
Process mask: 022(8) = 000010010(2) | |
Reversed process mask: 0755(8) = 111101101(2) // user r/w/x, group r/x, other r/x | |
Initial mode AND reversed mask: 0755(8) = 111101101(2) // user r/w/x, group r/x, other r/x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs.mkdir(path[, mode], callback); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mode = 0777 & ~process.umask(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs.writeFile(filename, data[, options], callback); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment