-
Notifications
You must be signed in to change notification settings - Fork 41
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
Klaw stops on error #23
Comments
You could add a filter function, and "stat" each path using a try...catch. |
Hi, I'm running into the same issue and I'm not sure how change the example code to keep it running while ignoring the error. Please advice :-) |
Depending on what you are doing, this might work. I just wrapped my klaw call with fs-extra's pathExists, and if you want to scan a list of folders just create an outer klaw call that checks only for directories and passes the current folder to the below.
|
One solution is to use vanilla Node:
|
Did anyone find a solution to this issue? I would prefer to use Klaw over the vanilla Node (as suggested above). Any help is much appreciated ! |
Hello,
I really appreciate this awesome package, but I cannot configure it to continue on error.
If directory access error occurs (not sure about file errors) then
klaw
just emitserror
and stops.end
isn't called.I'd like to continue seeking through directories.
Currently I cannot use
klaw
to scan whole readable filesystem, because it surely won't have access to some directories.Any solutions?
The text was updated successfully, but these errors were encountered: