We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec08570 commit b2c09c0Copy full SHA for b2c09c0
src/crawlfs.ts
@@ -28,7 +28,10 @@ export async function determineFileType(filename: string): Promise<CrawledFileTy
28
export async function crawl(dir: string, options: GlobOptionsWithFileTypesFalse) {
29
const metadata: Record<string, CrawledFileType> = {};
30
// TODO replace with `fs.glob`
31
- const crawled = await glob(dir, options);
+ const crawled = await glob(dir, {
32
+ windowsPathsNoEscape: true,
33
+ ...options,
34
+ });
35
const results = await Promise.all(
36
crawled.sort().map(async (filename) => [filename, await determineFileType(filename)] as const),
37
);
0 commit comments