nsuite / globMatchPaths
Function: globMatchPaths()
globMatchPaths(...
pathArr):Promise<string[]>
Defined in: UtilsPath.ts:127
Matches file paths using glob patterns.
Parameters
pathArr
...string[]
The path segments to join and match using glob patterns.
Returns
Promise<string[]>
A promise that resolves to an array of matched file paths.
Example
ts
import { globMatchPaths } from "nsuite";
const excelFileList = await globMatchPaths(
joinPath(__dirname, "materials/*.xlsx"),
);