forked from dominictarr/node-mkdirp
-
-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
Refs: nodejs/node#32321
Summary: process.umask()
(no args) will be deprecated and removed.
Reviewing this module, it uses process.umask()
in roughly this pattern:
const mode = 0o777 & ~process.umask();
fs.mkdirSync(dir, mode);
Computing the file mode that way is superfluous because the operating system applies the umask anyway. It can be replaced with just this:
fs.mkdirSync(dir, 0o777);
Metadata
Metadata
Assignees
Labels
No labels