C# Class FluentBuild.Utilities.FileSystemHelper

Finds files recursevely in a directory
Inheritance: IFileSystemHelper
Show file Open project: SkightTeam/eLiteWeb Class Usage Examples

Public Methods

Method Description
CreateFile ( string path ) : Stream
FileSystemHelper ( ) : System

Instantiates a new FileSystemHelper

Find ( string fileName ) : string

Finds a file in the CURRENT directory and searches subdirectories

Find ( string fileName, string directory ) : string

Finds a file in a directory and searches subdirectories

FindInFoldersRecursively ( string directory, string filter ) : List
ReadFile ( string path ) : Stream

Private Methods

Method Description
FileSystemHelper ( IFileSystemWrapper fileSystem ) : System

Method Details

CreateFile() public method

public CreateFile ( string path ) : Stream
path string
return Stream

FileSystemHelper() public method

Instantiates a new FileSystemHelper
public FileSystemHelper ( ) : System
return System

Find() public method

Finds a file in the CURRENT directory and searches subdirectories
public Find ( string fileName ) : string
fileName string The filename to search for
return string

Find() public method

Finds a file in a directory and searches subdirectories
public Find ( string fileName, string directory ) : string
fileName string The filename to find
directory string The starting directory to search
return string

FindInFoldersRecursively() public method

public FindInFoldersRecursively ( string directory, string filter ) : List
directory string
filter string
return List

ReadFile() public method

public ReadFile ( string path ) : Stream
path string
return Stream