mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: update umask for clarity
PR-URL: https://github.com/nodejs/node/pull/14170 Fixes: https://github.com/nodejs/node/issues/14169 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
7d851e3b6a
commit
b0286acd52
1 file changed
+3
-3
+3
-3
@@ -1654,9 +1654,9 @@ added: v0.1.19
|
||||
* `mask` {number}
|
||||
|
||||
The `process.umask()` method sets or returns the Node.js process's file mode
|
||||
creation mask. Child processes inherit the mask from the parent process. The old
|
||||
mask is return if the `mask` argument is given, otherwise returns the current
|
||||
mask.
|
||||
creation mask. Child processes inherit the mask from the parent process. Invoked
|
||||
without an argument, the current mask is returned, otherwise the umask is set to
|
||||
the argument value and the previous mask is returned.
|
||||
|
||||
```js
|
||||
const newmask = 0o022;
|
||||
|
||||
Reference in new issue
Block a user