MCPcopy Create free account
hub / github.com/Ark0N/Codeman / normalizePath

Method normalizePath

src/bash-tool-parser.ts:197–231  ·  view source on GitHub ↗

* Normalize a file path to its canonical form. * - Expands ~ to home directory * - Resolves relative paths against working directory * - Normalizes . and .. components * - Removes trailing slashes

(path: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

isPathInWorkingDirMethod · 0.95
pathsAreEquivalentMethod · 0.95
deduplicatePathsMethod · 0.95
isFilePathTrackedMethod · 0.95
getTrackedPathsMethod · 0.95

Calls 2

pushMethod · 0.80
trimMethod · 0.45

Tested by

no test coverage detected