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

Function unlinkSync

lib/fs.js:2328–2335  ·  view source on GitHub ↗

* Synchronously removes a file or symbolic link. * @param {string | Buffer | URL} path * @returns {void}

(path)

Source from the content-addressed store, hash-verified

2326 * @returns {void}
2327 */
2328function unlinkSync(path) {
2329 const h = vfsState.handlers;
2330 if (h !== null) {
2331 const result = h.unlinkSync(path);
2332 if (result !== undefined) return;
2333 }
2334 binding.unlink(getValidatedPath(path));
2335}
2336
2337/**
2338 * Sets the permissions on the file.

Callers 4

copyLinkFunction · 0.85
cleanupFunction · 0.85
testDeleteFunction · 0.85
third.test.jsFile · 0.85

Calls 2

unlinkSyncMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…