@@ -1089,6 +1089,10 @@ For example, the octal value `0o765` means:
|
1089 | 1089 | * The group may read and write the file. |
1090 | 1090 | * Others may read and execute the file. |
1091 | 1091 | |
| 1092 | +Caveats: on Windows only the write permission can be changed, and the |
| 1093 | +distinction among the permissions of group, owner or others is not |
| 1094 | +implemented. |
| 1095 | + |
1092 | 1096 | ## fs.chmodSync(path, mode) |
1093 | 1097 | <!-- YAML |
1094 | 1098 | added: v0.6.7 |
@@ -1987,7 +1991,7 @@ changes:
|
1987 | 1991 | --> |
1988 | 1992 | |
1989 | 1993 | * `path` {string|Buffer|URL} |
1990 | | -* `mode` {integer} **Default:** `0o777` |
| 1994 | +* `mode` {integer} Not supported on Windows. **Default:** `0o777`. |
1991 | 1995 | * `callback` {Function} |
1992 | 1996 | * `err` {Error} |
1993 | 1997 | |
@@ -2007,7 +2011,7 @@ changes:
|
2007 | 2011 | --> |
2008 | 2012 | |
2009 | 2013 | * `path` {string|Buffer|URL} |
2010 | | -* `mode` {integer} **Default:** `0o777` |
| 2014 | +* `mode` {integer} Not supported on Windows. **Default:** `0o777`. |
2011 | 2015 | |
2012 | 2016 | Synchronously creates a directory. Returns `undefined`. |
2013 | 2017 | This is the synchronous version of [`fs.mkdir()`][]. |
@@ -2127,7 +2131,8 @@ changes:
|
2127 | 2131 | Asynchronous file open. See open(2). |
2128 | 2132 | |
2129 | 2133 | `mode` sets the file mode (permission and sticky bits), but only if the file was |
2130 | | -created. |
| 2134 | +created. Note that on Windows only the write permission can be manipulated, |
| 2135 | +see [`fs.chmod()`][]. |
2131 | 2136 | |
2132 | 2137 | The callback gets two arguments `(err, fd)`. |
2133 | 2138 | |
|