C# Class F2F.Sandbox.FolderBasedFileLocator

File locator that locates files in a given directory.
Inheritance: IFileLocator
Mostrar archivo Open project: apprenda/F2F.Sandbox

Public Methods

Method Description
CopyTo ( string srcFile, string dstFile ) : void

See F2F.Sandbox.IFileLocator.CopyTo(string, string)

EnumeratePath ( string path ) : IEnumerable

See F2F.Sandbox.IFileLocator.EnumeratePath(string)

Exists ( string fileName ) : bool

Query if 'fileName' exists.

FolderBasedFileLocator ( string baseDirectory ) : System

Creates a new instance

Private Methods

Method Description
MakeAbsolutePath ( string fileName ) : string

Method Details

CopyTo() public method

See F2F.Sandbox.IFileLocator.CopyTo(string, string)
public CopyTo ( string srcFile, string dstFile ) : void
srcFile string
dstFile string
return void

EnumeratePath() public method

See F2F.Sandbox.IFileLocator.EnumeratePath(string)
public EnumeratePath ( string path ) : IEnumerable
path string
return IEnumerable

Exists() public method

Query if 'fileName' exists.
public Exists ( string fileName ) : bool
fileName string The file to locate.
return bool

FolderBasedFileLocator() public method

Creates a new instance
public FolderBasedFileLocator ( string baseDirectory ) : System
baseDirectory string
return System