diff --git a/doc/api/fs.md b/doc/api/fs.md index 772d1dc8e4f9af..62c07160f1b356 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1181,6 +1181,13 @@ possible exception are given to the completion callback. See also: chmod(2). +```js +fs.chmod('my_file.txt', 0o775, (err) => { + if (err) throw err; + console.log('The permissions for file "my_file.txt" have been changed!'); +}); +``` + ### File modes The `mode` argument used in both the `fs.chmod()` and `fs.chmodSync()`