* Creates a hard link. * @param {string} existingPath The existing file path * @param {string} newPath The new link path * @returns {Promise }
(existingPath, newPath)
| 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. |