Skip to content

Function: globPaths()

Documentation / @wtf/platform-fs / files / globPaths

function globPaths(platform, pattern): AsyncGenerator<string, undefined>;

Defined in: packages/platform-fs/src/files.ts:180

Each path pattern matches on the platform, once, in no order, as Node’s glob of fs/promises matches it, by glob of ./glob: of *, any characters of a name, ? one, [ab] one of them, ** any number of folders, and {a,b} each of its words; a name that starts with a . only by a part that does, and a link to a folder not followed by **. It walks the handles of the folder of the pattern’s first part that is wild: the paths of an absolute pattern are absolute, and those of a relative one relative, as it is written.

Parameters

ParameterType
platformFilesPlatform
patternstring

Returns

AsyncGenerator<string, undefined>