C# Class ShiftRight.Web.WebFileStorage

Inheritance: ShiftRight.Common.IStorage
Mostra file Open project: shiftright/scg-heim

Public Methods

Method Description
DeleteDirectory ( string path ) : void
DeleteFile ( string filename ) : void
EnsureRootExist ( ) : bool

GetAbsolutePath ( string relativePath ) : string
GetFileNames ( string directory ) : IEnumerable
GetFileStream ( string path, FileMode mode ) : Stream
Save ( System stream, string path ) : void
WebFileStorage ( ) : System
WebFileStorage ( string rootPath ) : System

Protected Methods

Method Description
LoadConfiguration ( ) : void

Method Details

DeleteDirectory() public method

public DeleteDirectory ( string path ) : void
path string
return void

DeleteFile() public method

public DeleteFile ( string filename ) : void
filename string
return void

EnsureRootExist() public method

public EnsureRootExist ( ) : bool
return bool

GetAbsolutePath() public method

public GetAbsolutePath ( string relativePath ) : string
relativePath string
return string

GetFileNames() public method

public GetFileNames ( string directory ) : IEnumerable
directory string
return IEnumerable

GetFileStream() public method

public GetFileStream ( string path, FileMode mode ) : Stream
path string
mode FileMode
return System.IO.Stream

LoadConfiguration() protected method

protected LoadConfiguration ( ) : void
return void

Save() public method

public Save ( System stream, string path ) : void
stream System
path string
return void

WebFileStorage() public method

public WebFileStorage ( ) : System
return System

WebFileStorage() public method

public WebFileStorage ( string rootPath ) : System
rootPath string
return System