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

Function foldPathCase

src/utils.ts:252–254  ·  view source on GitHub ↗

* A path in the form the sensitive-folder check compares: lower-cased where the * file system ignores case by default (NTFS, APFS), so `~/.SSH` is `~/.ssh`.

(p: string)

Source from the content-addressed store, hash-verified

250 * file system ignores case by default (NTFS, APFS), so `~/.SSH` is `~/.ssh`.
251 */
252function foldPathCase(p: string): string {
253 return process.platform === 'win32' || process.platform === 'darwin' ? p.toLowerCase() : p;
254}
255
256/**
257 * The plain spelling of a Win32 namespace path: `\\?\C:\x` and `\\.\C:\x` are

Callers 3

sensitiveSystemPathsFunction · 0.85
sensitiveHomeTreesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected