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

Method link

lib/internal/vfs/provider.js:496–501  ·  view source on GitHub ↗

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

(existingPath, newPath)

Source from the content-addressed store, hash-verified

494 * @returns {Promise<void>}
495 */
496 async link(existingPath, newPath) {
497 if (this.readonly) {
498 throw createEROFS('link', newPath);
499 }
500 throw new ERR_METHOD_NOT_IMPLEMENTED('link');
501 }
502
503 /**
504 * Creates a hard link synchronously.

Callers 1

linkFunction · 0.45

Calls 1

createEROFSFunction · 0.85

Tested by

no test coverage detected