MCPcopy Create free account
hub / github.com/nodejs/node / normalizePathToArray

Function normalizePathToArray

lib/internal/fs/cp/cp.js:184–185  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

182}
183
184const normalizePathToArray = (path) =>
185 ArrayPrototypeFilter(StringPrototypeSplit(resolve(path), sep), Boolean);
186
187// Return true if dest is a subdir of src, otherwise false.
188// It only checks the path strings.

Callers 1

isSrcSubdirFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected