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

Function linkDir

__tests__/security.test.ts:454–456  ·  view source on GitHub ↗

* A directory link any user can make: a junction on Windows (no privilege or * Developer Mode needed), a symlink elsewhere.

(target: string, link: string)

Source from the content-addressed store, hash-verified

452 * Developer Mode needed), a symlink elsewhere.
453 */
454function linkDir(target: string, link: string): void {
455 fs.symlinkSync(target, link, process.platform === 'win32' ? 'junction' : 'dir');
456}
457
458/** Point `os.homedir()` at `home`: it reads USERPROFILE on Windows, HOME elsewhere. */
459function setHome(home: string | undefined, profile: string | undefined = home): void {

Callers 1

linkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected