Skip to content

src: define fs.constants.S_IWUSR & S_IRUSR for Win

Rodrigo Muino Tomonari requested to merge github/fork/xpack/fs-constants into master

On Windows, most of the POSIX file mode definitions are not available. However, functionally equivalent read/write definitions exists, and chmod() can use them. This patch defines two aliases, so that these definintions are issued in fs.constants. It also updates the documentation to mention which constants are available on Windows.

Refs: https://github.com/nodejs/node/issues/41591

Merge request reports

Loading