C# Class StoryTeller.Persistence.FileSystem

Inheritance: IFileSystem
Exibir arquivo Open project: adymitruk/storyteller

Public Methods

Method Description
CreateFolder ( string path ) : void
DeleteFile ( string filename ) : void
DeleteFolder ( string folder ) : void
FileExists ( string path ) : bool
GetFiles ( string folderPath, string extensionWithoutPeriod ) : string[]
GetSubFolders ( string folderPath ) : string[]
ReadStringFromFile ( string filename ) : string
WriteStringToFile ( string text, string filename ) : void

Method Details

CreateFolder() public method

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

DeleteFile() public method

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

DeleteFolder() public method

public DeleteFolder ( string folder ) : void
folder string
return void

FileExists() public method

public FileExists ( string path ) : bool
path string
return bool

GetFiles() public method

public GetFiles ( string folderPath, string extensionWithoutPeriod ) : string[]
folderPath string
extensionWithoutPeriod string
return string[]

GetSubFolders() public method

public GetSubFolders ( string folderPath ) : string[]
folderPath string
return string[]

ReadStringFromFile() public method

public ReadStringFromFile ( string filename ) : string
filename string
return string

WriteStringToFile() public method

public WriteStringToFile ( string text, string filename ) : void
text string
filename string
return void