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

Function lchown

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

Source from the content-addressed store, hash-verified

130}
131
132function lchown({ uid, gid }) {
133 const fs = require('fs');
134 fs.writeFileSync('fs12.txt', '123', 'utf8');
135 fs.lchown('fs12.txt', uid, gid, () => {
136 fs.unlinkSync('fs12.txt');
137 });
138}
139
140function link() {
141 const fs = require('fs');

Callers 1

doTestFunction · 0.70

Calls 4

lchownMethod · 0.80
requireFunction · 0.50
writeFileSyncMethod · 0.45
unlinkSyncMethod · 0.45

Tested by

no test coverage detected