MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / pathDirsOnPath

Function pathDirsOnPath

apps/desktop/src/main/cli-install.ts:125–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125function pathDirsOnPath(): Set<string> {
126 const out = new Set<string>()
127 for (const dir of (process.env.PATH ?? '').split(path.delimiter)) {
128 const trimmed = dir.trim()
129 if (!trimmed) continue
130 try {
131 out.add(path.resolve(trimmed))
132 } catch {
133 /* skip malformed PATH entries */
134 }
135 }
136 return out
137}
138
139async function isWritableDir(dir: string): Promise<boolean> {
140 try {

Callers 2

pickInstallTargetFunction · 0.85
installCliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected