Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Provide a way to retrieve errors when you choose to ContinueOnException #212

Closed
CyberSinh opened this issue Sep 15, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@CyberSinh
Copy link
Contributor

CyberSinh commented Sep 15, 2015

Hi,

Congratulations for you great library I use in my sync software: Echosync.

DirectoryEnumerationOptions.ContinueOnException is a great option but it would be great also to have a way to retrieve errors happened during the enumeration.

What do you think about this idea?

Thanks again.

Regards,

Cyber Sinh

@Zuldan
Copy link

Zuldan commented Dec 28, 2015

Great suggestion, I need this feature as well.

@Yomodo Yomodo added this to the Future milestone Aug 17, 2016
@besoft
Copy link

besoft commented Mar 3, 2017

I have implemented this feature: you may pass a set of filters into overloaded Enumerate methods and with DirectoryEnumerationOptions.ContinueOnException OFF your callback filter will be called. In your callback method you may log the error, ask the user, etc. and if the process should continue (as with DirectoryEnumerationOptions.ContinueOnException ON) your method will return true, false otherwise.

@Yomodo Yomodo self-assigned this Jun 20, 2017
@Yomodo Yomodo modified the milestones: vNext, Future Jun 20, 2017
Yomodo pushed a commit that referenced this issue Jun 20, 2017
…o ContinueOnException

-Added numerous Directory.EnumerateXxx overloaded methods for #212.
-Some internal method signature changes.
@Yomodo Yomodo closed this as completed Jun 28, 2017
@Yomodo Yomodo modified the milestones: vNext, Release 2.2 Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants