Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with double Backslash on Windows #93

Closed
muehlich86 opened this issue Sep 24, 2023 · 0 comments
Closed

Problem with double Backslash on Windows #93

muehlich86 opened this issue Sep 24, 2023 · 0 comments

Comments

@muehlich86
Copy link

muehlich86 commented Sep 24, 2023

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();

const SLASHES_REGEX = /[\\/]+/g;

The new option withPathSeparator(separator: "/" | "\") has the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant