Created
January 19, 2020 22:31
-
-
Save BetterProgramming/d45a01e29d0cfb43df998e9e3fbf7168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const file = "./files/file.txt"; | |
fs.chown(file, 1000, 1000, err => { | |
if (err) throw err; | |
console.log("File ownership changed"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment