MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / toComparable

Function toComparable

source code/utils/memoryFileDetection.ts:33–36  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

31// Convert a path to a stable string-comparable form: forward-slash separated,
32// and on Windows, lowercased (Windows filesystems are case-insensitive).
33function toComparable(p: string): string {
34 const posixForm = toPosix(p)
35 return IS_WINDOWS ? posixForm.toLowerCase() : posixForm
36}
37
38/**
39 * 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