C# Class Rebel.Framework.FileSystemInfoExtensions

Show file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
EnumerateFileSystemInfosRecursive ( this directory ) : IEnumerable

Retreives all FileSystemInfo objects underneath a specified directory and all child directories recursively

RelativePathOfItem ( this directory, FileSystemInfo item ) : string

Calculates the FileSystemInfo object's relative path to a DirectoryInfo object

Method Details

EnumerateFileSystemInfosRecursive() public static method

Retreives all FileSystemInfo objects underneath a specified directory and all child directories recursively
public static EnumerateFileSystemInfosRecursive ( this directory ) : IEnumerable
directory this
return IEnumerable

RelativePathOfItem() public static method

Calculates the FileSystemInfo object's relative path to a DirectoryInfo object
public static RelativePathOfItem ( this directory, FileSystemInfo item ) : string
directory this
item System.IO.FileSystemInfo
return string