Skip to content

Function: partsOf()

Documentation / @wtf/platform-fs / path / partsOf

function partsOf(path, method?): string[];

Defined in: packages/platform-fs/src/path.ts:36

The names of a path, in order: a / or a \ between two, no . and no empty one, and each .. taking the name before it off. A .. with no name before it, out of the folder, is a BadArgument: a path never leads out of the folder it is of. '', . and / are the folder itself, of no name.

Parameters

ParameterTypeDefault value
pathstringundefined
methodstring'partsOf'

Returns

string[]