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

Function link

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

Source from the content-addressed store, hash-verified

258
259 // Symlink creation needs privileges on Windows; skip gracefully if it fails.
260 const link = (linkPath: string, target: string): boolean => {
261 try { fs.symlinkSync(target, linkPath); return true; } catch { return false; }
262 };
263
264 it('allows a real file inside the root (and realpaths consistently)', () => {
265 expect(validatePathWithinRoot(root, 'src/in.ts')).not.toBeNull();

Callers 1

security.test.tsFile · 0.70

Calls 2

linkDirFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected