MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / arePathsEqual

Function arePathsEqual

apps/cli/src/lib/utils/path.ts:21–35  ·  view source on GitHub ↗
(path1?: string, path2?: string)

Source from the content-addressed store, hash-verified

19 * - Case sensitivity (case-insensitive on Windows/macOS)
20 */
21export function arePathsEqual(path1?: string, path2?: string): boolean {
22 if (!path1 || !path2) {
23 return false
24 }
25
26 const normalizedPath1 = normalizePath(path1)
27 const normalizedPath2 = normalizePath(path2)
28
29 // On Windows and macOS, file paths are case-insensitive
30 if (process.platform === "win32" || process.platform === "darwin") {
31 return normalizedPath1.toLowerCase() === normalizedPath2.toLowerCase()
32 }
33
34 return normalizedPath1 === normalizedPath2
35}

Callers 4

path.test.tsFile · 0.50
AppInnerFunction · 0.50
getMostRecentTaskIdFunction · 0.50

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected