MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / toComparable

Function toComparable

src/utils/memoryFileDetection.ts:31–34  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

29// Convert a path to a stable string-comparable form: forward-slash separated,
30// and on Windows, lowercased (Windows filesystems are case-insensitive).
31function toComparable(p: string): string {
32 const posixForm = toPosix(p)
33 return IS_WINDOWS ? posixForm.toLowerCase() : posixForm
34}
35
36/**
37 * Detects if a file path is a session-related file under ~/.claude.

Callers 3

detectSessionFileTypeFunction · 0.85
isMemoryDirectoryFunction · 0.85

Calls 1

toPosixFunction · 0.85

Tested by

no test coverage detected