Tags: Javascript, Nodejs, fs-extra, chown, chownSync
const fse = require('fs-extra');
try { // Change the owner of the file fse.chownSync('/path/to/file', 1000, 1000); console.log('Owner of the file has been changed'); } catch (err) { console.error(err); }
index.tsx579 chars9 lines
gistlibby LogSnag