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

Method linkSync

lib/internal/vfs/provider.js:508–513  ·  view source on GitHub ↗

* Creates a hard link synchronously. * @param {string} existingPath The existing file path * @param {string} newPath The new link path

(existingPath, newPath)

Source from the content-addressed store, hash-verified

506 * @param {string} newPath The new link path
507 */
508 linkSync(existingPath, newPath) {
509 if (this.readonly) {
510 throw createEROFS('link', newPath);
511 }
512 throw new ERR_METHOD_NOT_IMPLEMENTED('linkSync');
513 }
514
515 // === SYMLINK OPERATIONS (optional, throw ENOENT by default) ===
516

Callers 14

linkSyncFunction · 0.45
linkSyncFunction · 0.45
mainFunction · 0.45
realpathFunction · 0.45
unlinkFunction · 0.45
test-fs-link.jsFile · 0.45
test-vfs-link.jsFile · 0.45
fs-write.jsFile · 0.45

Calls 1

createEROFSFunction · 0.85

Tested by

no test coverage detected