MCPcopy Create free account
hub / github.com/vercel/vercel / normalizePath

Function normalizePath

packages/python-analysis/src/util/fs.ts:39–45  ·  view source on GitHub ↗
(p: Path)

Source from the content-addressed store, hash-verified

37}
38
39export function normalizePath(p: Path): AbsPath {
40 let np = path.normalize(p);
41 if (np.endsWith(path.sep)) {
42 np = np.slice(0, -1);
43 }
44 return np;
45}
46
47/**
48 * Check if a path is at or below a parent path in the directory tree.

Callers 1

discoverPythonPackageFunction · 0.90

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected