MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / removeLink

Function removeLink

__tests__/ui-trails.test.ts:147–153  ·  view source on GitHub ↗

Remove a link itself, never what it points at, when there is one.

(link: string)

Source from the content-addressed store, hash-verified

145
146/** Remove a link itself, never what it points at, when there is one. */
147function removeLink(link: string): void {
148 try {
149 if (fs.lstatSync(link).isSymbolicLink()) fs.unlinkSync(link);
150 } catch {
151 // Nothing there.
152 }
153}
154
155/**
156 * Whether this machine can create a link of `type`. A Windows junction needs no

Callers 2

canCreateLinkFunction · 0.85
ui-trails.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected