-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Multiple calls to readdirSync adds to the returned array #25
Comments
Same issue for not specifying options. |
Ran into the same issue which caused a security problem (files returned that should not have been). |
Encountered this problem as well, unfortunately I had to switch to https://github.com/isaacs/node-glob |
A workaround is to create a new instance of the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I call
globFs.readdirSync(path, {cwd: '/'})
multiple times I get a different array each time. The file list is being added to the last response each time.Note I'm using the cwd param because I'm passing in absolute paths.
The text was updated successfully, but these errors were encountered: