MCPcopy Create free account
hub / github.com/cloudflare/computer / unlink

Function unlink

packages/computerd/src/fuse/driver.ts:747–756  ·  view source on GitHub ↗
(path, cb)

Source from the content-addressed store, hash-verified

745 },
746
747 unlink(path, cb) {
748 try {
749 if (!isPendingCreate(path)) vfs.unlinkSync(toVfs(path));
750 meta.delete(path);
751 files.delete(path);
752 cb(0);
753 } catch (error) {
754 cb(toErrno(error));
755 }
756 },
757
758 mkdir(path, mode, cb) {
759 try {

Callers

nothing calls this directly

Calls 5

isPendingCreateFunction · 0.85
toVfsFunction · 0.85
toErrnoFunction · 0.85
unlinkSyncMethod · 0.80
deleteMethod · 0.65

Tested by

no test coverage detected