MCPcopy
hub / github.com/colbymchenry/codegraph / link

Function link

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

Source from the content-addressed store, hash-verified

202
203 // Symlink creation needs privileges on Windows; skip gracefully if it fails.
204 const link = (linkPath: string, target: string): boolean => {
205 try { fs.symlinkSync(target, linkPath); return true; } catch { return false; }
206 };
207
208 it('allows a real file inside the root (and realpaths consistently)', () => {
209 expect(validatePathWithinRoot(root, 'src/in.ts')).not.toBeNull();

Callers 1

security.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected