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

Doesn't work on Windows with absolute paths #7

Closed
pqvst opened this issue Mar 20, 2017 · 3 comments · Fixed by #10
Closed

Doesn't work on Windows with absolute paths #7

pqvst opened this issue Mar 20, 2017 · 3 comments · Fixed by #10
Assignees

Comments

@pqvst
Copy link

pqvst commented Mar 20, 2017

When I tried to use this on Windows with an absolute path, it appends the cwd to the absolute path

fastGlob.sync("C:/foo/*.bar");

Causes

Error: ENOENT: no such file or directory, scandir 'C:\my\current\working\dir\C:\foo'
@haggholm
Copy link

The same thing appears to happen in OS X. It works fine on my Linux machines, but fails in an analogous fashion on a co-worker’s machine.

@mrmlnc mrmlnc self-assigned this May 18, 2017
@mrmlnc mrmlnc added the bug label May 18, 2017
@alan-agius4
Copy link
Contributor

This is also happening when a pattern doesn't match a file

@mrmlnc
Copy link
Owner

mrmlnc commented May 26, 2017

Sorry for delay. I want add some tests and then I'll publish patch-release. Most likely today.

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

Successfully merging a pull request may close this issue.

4 participants