Closed muehlich86 closed 10 months ago
I cannot use the latest version because of the following change. For example, in Windows I have the following network path:
\\192.168.1.10\folder1\folder2
The following code also replaces the first \\ to a \.
\\
\
\192.168.1.10\folder1\folder2
This will then not find any files.
I am currently using the following code. await new fdir().withMaxDepth(1).withFullPaths().crawl('\\192.168.1.10\folder1\folder2').withPromise();
await new fdir().withMaxDepth(1).withFullPaths().crawl('\\192.168.1.10\folder1\folder2').withPromise();
https://github.com/thecodrr/fdir/blob/7185259ac31143573d7897fe8915cead681e838e/src/utils.ts#L15
The new option withPathSeparator(separator: "/" | "\") has the same effect.
/
I cannot use the latest version because of the following change. For example, in Windows I have the following network path:
\\192.168.1.10\folder1\folder2
The following code also replaces the first
\\
to a\
.\192.168.1.10\folder1\folder2
This will then not find any files.
I am currently using the following code.
await new fdir().withMaxDepth(1).withFullPaths().crawl('\\192.168.1.10\folder1\folder2').withPromise();
https://github.com/thecodrr/fdir/blob/7185259ac31143573d7897fe8915cead681e838e/src/utils.ts#L15
The new option withPathSeparator(separator: "
/
" | "\
") has the same effect.