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
Find command crashes when trying to scan Directories without Permission on Windows #1095
Comments
Can you share the full error stack? |
Of course
|
Getting the same problem with my own application, any help on this??? |
Hmm looks like it's crashing inside the glob module. Unfortunately I would need some help debugging this since I don't regularly use Windows. |
I can help out @nfischer. Is there specific information you are looking for? |
If you can still repro this: does upgrading the I understand we cannot get results from directories which we don't have permission to access, but ideally we would want the wildcard to expand to include all the folders we can access. |
Node version (or tell us if you're using electron or some other framework):
v14.17.1
ShellJS version (the most recent version/Github branch you see the bug on):
0.8.5
Operating system:
Windows 10
Description of the bug:
When using the find command, it will throw
Error [ShellJSInternalError]: EPERM: operation not permitted, scandir [dir]
when it has no permission to access the folder for scanning.Is there a way to let it ignore this directory and continue scanning?
Example ShellJS command to reproduce the error:
The text was updated successfully, but these errors were encountered: