Skip to content

DirectoryInfoWrapper does not support lazy file enumeration #201

@code-bringer

Description

@code-bringer

The following methods of class DirectoryInfoWrapper returns results as an IEnumerable which can be lazily evaluated somewhat, but current code returns results as an array which has to be fully populated before it can return.

In some cases, especially when you are working with remote file systems this difference is crucial from performance stand of point.

As far as I can see problem is in the implementation of Converters class, namely all methods of this class returns results as an array instead of IEnumerable

For more information please see here:

  1. https://msdn.microsoft.com/en-us/library/dd383571.aspx
  2. http://stackoverflow.com/questions/5669617/what-is-the-difference-between-directory-enumeratefiles-vs-directory-getfiles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions