Project Description
DirectoryInfoEx is a DirectoryInfo rewrite using IShellFolder, it provide access to special folders like desktop, mycomputer to Desktop (32/64) applications.
FileSystemInfoEx.jpg

DirectoryInfoEx
DirectoryInfo is a class to represent a folder in disk, it's suitable to list file system entries, but it cannot be used to represent a special folder (e.g. virtual folder that doesnt exist in the disk). you may have to use IShellFolder to enumerate these directories. DirectoryInfoEx is written to support these folders.
DirectoryInfoEx is inherited from FileSystemInfoEx, which is inherited from FileSystemInfo, it have a similar interface as System.IO.DirectoryInfo.

e.g.
string[] txtFiles = new DirectoryInfoEx(Environment.SpecialFolder.Desktop)
                .EnumerateFiles("*.txt", SearchOption.TopDirectoryOnly)
                .Select(fi => fi.FullName)
                .ToArray();


Partial documentation can be found here : http://www.codeproject.com/KB/files/DirectoryInfoEx.aspx
Nuget package is available here : https://www.nuget.org/packages/DirectoryInfoEx/

FileExplorer.png
FileExplorer

Last edited Nov 19, 2014 at 3:36 PM by lycj, version 17