ironfede / openmcdf

Microsoft Compound File .net component - pure C# - netstandard 2.0
Mozilla Public License 2.0
297 stars 73 forks source link

Add better options for enmuerate CFStrorage items (via IEnumerable<>) #58

Open kucint opened 4 years ago

kucint commented 4 years ago

Hi, although you provide a method for query children items (void VisitEntries(Action<CFItem> action, bool recursive)), it has some significant drawbacks:

The solution would be an implementation of IEnumerable<>. Have look on System.IO.Directory. it has to enumerate as well its sub-Folders and files and it returns IEnumerable<>.

Suggestion: Add following methods to CFStorage:

best!