MCPcopy Index your code
hub / github.com/nodejs/node / chown

Function chown

test/parallel/test-trace-events-fs-async.js:38–44  ·  view source on GitHub ↗
({ uid, gid })

Source from the content-addressed store, hash-verified

36}
37
38function chown({ uid, gid }) {
39 const fs = require('fs');
40 fs.writeFileSync('fs2.txt', '123', 'utf8');
41 fs.chown('fs2.txt', uid, gid, () => {
42 fs.unlinkSync('fs2.txt');
43 });
44}
45
46function close() {
47 const fs = require('fs');

Callers 1

doTestFunction · 0.70

Calls 4

requireFunction · 0.50
writeFileSyncMethod · 0.45
chownMethod · 0.45
unlinkSyncMethod · 0.45

Tested by

no test coverage detected