MCPcopy Index your code
hub / github.com/angular/angular-cli / split

Function split

packages/angular_devkit/core/src/virtual-fs/path.ts:58–65  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

56 * @returns {Path[]} An array of path fragments.
57 */
58export function split(path: Path): PathFragment[] {
59 const fragments = path.split(NormalizedSep).map((x) => fragment(x));
60 if (fragments.at(-1)?.length === 0) {
61 fragments.pop();
62 }
63
64 return fragments;
65}
66
67/**
68 *

Callers 6

path_spec.tsFile · 0.90
_writeMethod · 0.90
_renameMethod · 0.90
_listMethod · 0.90
_resolveMethod · 0.90
relativeFunction · 0.85

Calls 2

fragmentFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected