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

Function rm

lib/internal/fs/promises.js:1537–1546  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

1535}
1536
1537async function rm(path, options) {
1538 const h = vfsState.handlers;
1539 if (h !== null) {
1540 const promise = h.rm(path, options);
1541 if (promise !== undefined) { await promise; return; }
1542 }
1543 path = getValidatedPath(path);
1544 options = await validateRmOptionsPromise(path, options, false);
1545 return lazyRimRaf()(path, options);
1546}
1547
1548async function rmdir(path, options) {
1549 const h = vfsState.handlers;

Callers 2

test-esm-json.mjsFile · 0.90

Calls 1

rmMethod · 0.45

Tested by

no test coverage detected