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

Function isWindowsDriveMount

src/sync/watch-policy.ts:56–58  ·  view source on GitHub ↗

* True for WSL Windows-drive mounts like `/mnt/c` or `/mnt/d/project`. * Deliberately matches only single-letter drive mounts, so genuinely fast * Linux mounts such as `/mnt/wsl/...` are not flagged.

(projectRoot: string)

Source from the content-addressed store, hash-verified

54 * Linux mounts such as `/mnt/wsl/...` are not flagged.
55 */
56function isWindowsDriveMount(projectRoot: string): boolean {
57 return /^\/mnt\/[a-z](\/|$)/i.test(normalizePath(projectRoot));
58}
59
60/**
61 * Inputs that can be overridden in tests so the decision is deterministic

Callers 1

watchDisabledReasonFunction · 0.85

Calls 1

normalizePathFunction · 0.90

Tested by

no test coverage detected