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

Non-existing directories in globbing pattern (ENOENT) throw errors #211

Closed
ehmicky opened this issue Jun 23, 2019 · 2 comments
Closed

Non-existing directories in globbing pattern (ENOENT) throw errors #211

ehmicky opened this issue Jun 23, 2019 · 2 comments
Assignees
Milestone

Comments

@ehmicky
Copy link

ehmicky commented Jun 23, 2019

Environment

  • OS Version: Ubuntu 19.04
  • Node.js Version: 12.4.0

Actual behavior

Using fast-glob@3.0.2:

> await fastGlob('doesNotExist/*')
Thrown:
[Error: ENOENT: no such file or directory, scandir '/home/myPackage/doesNotExist'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/home/myPackage/doesNotExist'
}

Expected behavior

What fast-glob@2.2.7 used to do:

> await fastGlob('doesNotExist/*')
[]

Steps to reproduce

See above.

Code sample

See above.

@mrmlnc
Copy link
Owner

mrmlnc commented Jun 24, 2019

Already fixed in the master branch. The release is planned in the near future (tomorrow or the day after that).

@ehmicky
Copy link
Author

ehmicky commented Jun 25, 2019

Thanks @mrmlnc!

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

No branches or pull requests

2 participants