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

Function dirLink

__tests__/security.test.ts:294–295  ·  view source on GitHub ↗
(linkPath: string, target: string)

Source from the content-addressed store, hash-verified

292 // cases below run there without Developer Mode; a symlink elsewhere. Each
293 // test removes its own link, so nothing recursive ever walks through one.
294 const dirLink = (linkPath: string, target: string): void =>
295 fs.symlinkSync(target, linkPath, process.platform === 'win32' ? 'junction' : 'dir');
296
297 it.runIf(process.platform === 'win32')('rejects a missing leaf below an out-of-root directory junction', () => {
298 const junction = path.join(root, 'escapejunction');

Callers 1

security.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected