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

Add method to convert paths to globs #240

Closed
sindresorhus opened this issue Nov 13, 2019 · 1 comment · Fixed by #392
Closed

Add method to convert paths to globs #240

sindresorhus opened this issue Nov 13, 2019 · 1 comment · Fixed by #392

Comments

@sindresorhus
Copy link

sindresorhus commented Nov 13, 2019

The change in 3.0.0 that changed it to only allow forward slash paths turned out to be a pain. Anywhere I use fast-glob, I now need to specially normalize paths on Windows.

Would be useful if fast-glob had a .convertToGlob() kinda method, with similar logic to sindresorhus/del@01da91f#diff-168726dbe96b3ce427e7fedce31bb0bcR41-R53.

Maybe there could even be some kind of option to loosen fast-glob, when you don't need glob escaping, but do need to accept both file paths and globs, which is actually the majority of cases, at least for me.

@mrmlnc
Copy link
Owner

mrmlnc commented May 24, 2023

Fixed in the master by #392. Will be shipped with 3.3.0.

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

Successfully merging a pull request may close this issue.

2 participants