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

Glob behaves differently when handed a drive letter root as its directory (Windows) #583

Closed
cbartondock opened this issue Apr 25, 2024 · 2 comments

Comments

@cbartondock
Copy link

Output of glob(finalGlob, { dot: true, cwd: directory, follow: true }) is globfiles:

image

Notice that for the case where directory is not the root of the drive, the drive letter is not included (the correct behavior since absolute is not set) whereas for the case where directory is D:\ the files start with D:\\.

@isaacs
Copy link
Owner

isaacs commented Apr 29, 2024

I can't read screenshots very easily. Can you post the JavaScript you're running and copy the terminal output as plain text?

Repository owner deleted a comment from frontzhm Apr 29, 2024
@isaacs
Copy link
Owner

isaacs commented May 9, 2024

Is this the same as #584?

@isaacs isaacs closed this as completed May 9, 2024
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