MCPcopy Create free account
hub / github.com/nodejs/node / symlink

Function symlink

test/parallel/test-trace-events-fs-async.js:250–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248}
249
250function symlink() {
251 const fs = require('fs');
252 fs.writeFileSync('fs27.txt', '123', 'utf8');
253 fs.symlink('fs27.txt', 'fs28.txt', () => {
254 fs.unlinkSync('fs27.txt');
255 fs.unlinkSync('fs28.txt');
256 });
257}
258
259function readlink() {
260 const fs = require('fs');

Callers 2

doTestFunction · 0.70

Calls 4

requireFunction · 0.50
writeFileSyncMethod · 0.45
symlinkMethod · 0.45
unlinkSyncMethod · 0.45

Tested by

no test coverage detected