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

Method unlinkSync

lib/internal/vfs/file_system.js:346–349  ·  view source on GitHub ↗

* Removes a file synchronously. * @param {string} filePath The file path

(filePath)

Source from the content-addressed store, hash-verified

344 * @param {string} filePath The file path
345 */
346 unlinkSync(filePath) {
347 const providerPath = this.#toProviderPath(filePath);
348 this[kProvider].unlinkSync(providerPath);
349 }
350
351 /**
352 * Renames a file or directory synchronously.

Callers 1

rmSyncMethod · 0.95

Calls 1

#toProviderPathMethod · 0.95

Tested by

no test coverage detected