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

globby('/*') returns [] #148

Closed
starpit opened this issue Aug 7, 2020 · 3 comments
Closed

globby('/*') returns [] #148

starpit opened this issue Aug 7, 2020 · 3 comments

Comments

@starpit
Copy link

starpit commented Aug 7, 2020

Actual:

globby.sync('/*') returns []

Expected

Should it not return a list with the files along the same lines as require('fs').readdirSync('/')?

@sindresorhus
Copy link
Owner

Might be related to mrmlnc/fast-glob#277

@starpit
Copy link
Author

starpit commented Aug 8, 2020

nice, thanks for the investigation!

@starpit
Copy link
Author

starpit commented Jan 18, 2021

This doesn't seem to be a problem any more, at least with onlyFiles: false

> require('globby').sync('/*', { onlyFiles: false })
[
  '/Applications',
  '/Library',
  '/System',
  '/Users',
  '/Volumes',
  '/bin',
  '/com.apple.TimeMachine.localsnapshots',
  '/cores',
  '/dev',
  '/etc',
  '/home',
  '/opt',
  '/private',
  '/sbin',
  '/tmp',
  '/usr',
  '/var'
]

@starpit starpit closed this as completed Jan 18, 2021
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

2 participants