sindresorhus / globby

User-friendly glob matching
MIT License
2.51k stars 130 forks source link

Ignore errors when lacking permissions #186

Closed Oman395 closed 3 years ago

Oman395 commented 3 years ago

I'm attempting to make something simple to organize a pc (more as a proof of concept then anything) and I keep running into errors attempting to read something it shouldn't (path is currently /users/*/, ignoring AppData/*/) and fully stopping the execution. In normal glob I can just add the strict: false option but it doesn't appear to be working right now. Am I missing something obvious? Screenshot (164)

Oman395 commented 3 years ago

That's odd, in my commit its turning forward slash with two asterisks into two forward slash

Oman395 commented 3 years ago

Also yes I put strict in quotes, still broken

Oman395 commented 3 years ago

Nevermind, just needed "suppressErrors": true rather then "strict": false