-
-
Notifications
You must be signed in to change notification settings - Fork 133
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 skips folder with symbols in it's name #81
Comments
Sorry, @jonschlinkert, but you can take a look at this issue? You have a more experience here :)
I think that we lost |
I can confirm that globby won't return any results if passed a dir with characters like square/round brackets in its name. Anyone got a fix for that? Edit: Looks like the |
Would you be able to submit a pull request with one or more failing tests? That would help getting this fixed faster. |
There is also issue with "+" character, see details here renke/import-sort#71. |
Hey folks, having come across this issue while investigating the issue linked above in the Google datastore library, my take is that this isn't something that globby should fix, since it by design accepts patterns like @sindresorhus do you have any suggestions for how a developer should write a sanitization function that correctly escapes all characters, like |
I agree that would be useful. Can you open a feature request on https://github.com/mrmlnc/fast-glob? It needs to be implemented there first. Something like |
The package const test = await globby('/some/directory/test \(with escaped parenses\)/**/*') ➜ museeks git:(master) ✗ ls -la ~/Google\ Drive/Music/Air\ \(test\)/Moon\ Safari
total 123248
drwxr-xr-x 12 pierre staff 384 Dec 16 2017 .
drwxr-xr-x 9 pierre staff 288 Mar 3 12:54 ..
-rw------- 1 pierre staff 10355029 Jan 12 2014 01 La Femme D'Argent.mp3
-rw------- 1 pierre staff 7167036 Jan 12 2014 02 Sexy Boy.mp3
-rw------- 1 pierre staff 6443550 Jan 12 2014 03 All I Need.mp3
-rw------- 1 pierre staff 5414128 Jan 12 2014 04 Kelly Watch The Stars.mp3
-rw------- 1 pierre staff 6165188 Jan 12 2014 05 Talisman.mp3
-rw------- 1 pierre staff 3706946 Jan 12 2014 06 Remember.mp3
-rw------- 1 pierre staff 5800944 Jan 12 2014 07 You Make It Easy.mp3
-rw------- 1 pierre staff 5261128 Jan 12 2014 08 Ce Matin La.mp3
-rw------- 1 pierre staff 8178320 Jan 12 2014 09 New Star In The Sky (Chanson Pour Solal).mp3
-rw------- 1 pierre staff 4584689 Jan 12 2014 10 Le Voyage De Penelope.mp3
➜ museeks git:(master) ✗ node
> (async () => { console.log('results', await globby('~/Google\ Drive/Music/Air\ \(test\)/**/*')) })()
> results []
edit: After some research, it looks like a
|
My bad, you have to escape the anti-slash escaping the special caracters as well 🙃
Ref: micromatch/micromatch#77 (comment) But it seems
|
Now that |
This seems to have been fixed sometime after opening the issue. I just cloned the repository, installed dependencies and: > const globby = require('.');
undefined
> (async () => console.log(await globby('/path/src/pages/jobs/[slug].js')))();
Promise { <pending> }
> [
'/path/src/pages/jobs/[slug].js'
] Since the project doesn't feature a lock-file is hard to say if an in-range version of some upstream dependency fixed the issue for us or not. |
I have issue when trying to ignore the following on next.js: pages/[...error]/index.tsx and found this pattern: '!../pages/\\[*\\]/*.tsx'
'!../pages/\\[*\\]/**/*.tsx' |
I'm having this issue with parenthesis : const currentDir = `West side (Left)` // <--- parenthesis
const climbFiles = await globby([
`${currentDir}/*.md`,
`!${currentDir}/index.md`,
]);
// climbFiles = [] empty array |
Same problem with next.js' parenthesis folders and using Example structure:
|
Can't make
globby
to search file inside this folder:C:\Users\me\Desktop\github.com + Globby
.I've tryed
noext
and other options, but without result.The text was updated successfully, but these errors were encountered: