diff --git a/doc/api/fs.md b/doc/api/fs.md index 83840ca0a64f7a..b6db6acc77154a 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1243,6 +1243,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()`