C# Class Cirrious.MvvmCross.Plugins.File.WindowsCommon.MvxWindowsCommonBlockingFileStore

Inheritance: IMvxFileStore
Show file Open project: Everbridge/sm-MvvmCross

Public Methods

Method Description
DeleteFile ( string path ) : void
DeleteFolder ( string folderPath, bool recursive ) : void
EnsureFolderExists ( string folderPath ) : void
Exists ( string path ) : bool
FolderExists ( string folderPath ) : bool
GetFilesIn ( string folderPath ) : IEnumerable
GetFoldersIn ( string folderPath ) : IEnumerable
NativePath ( string path ) : string
OpenRead ( string path ) : Stream
OpenWrite ( string path ) : Stream
PathCombine ( string items0, string items1 ) : string
TryMove ( string from, string to, bool deleteExistingTo ) : bool
TryReadBinaryFile ( string path, bool>.Func readMethod ) : bool
TryReadBinaryFile ( string path, byte &contents ) : bool
TryReadTextFile ( string path, string &contents ) : bool
WriteFile ( string path, Action writeMethod ) : void
WriteFile ( string path, IEnumerable contents ) : void
WriteFile ( string path, string contents ) : void

Private Methods

Method Description
CreateStorageFileFromRelativePath ( string path ) : StorageFile
SafeDeleteFile ( string path ) : bool
StorageFileFromRelativePath ( string path ) : StorageFile
ToFullPath ( string path ) : string
TryReadFileCommon ( string path, bool>.Func streamAction ) : bool
WriteFileCommon ( string path, Action streamAction ) : void

Method Details

DeleteFile() public method

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

DeleteFolder() public method

public DeleteFolder ( string folderPath, bool recursive ) : void
folderPath string
recursive bool
return void

EnsureFolderExists() public method

public EnsureFolderExists ( string folderPath ) : void
folderPath string
return void

Exists() public method

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

FolderExists() public method

public FolderExists ( string folderPath ) : bool
folderPath string
return bool

GetFilesIn() public method

public GetFilesIn ( string folderPath ) : IEnumerable
folderPath string
return IEnumerable

GetFoldersIn() public method

public GetFoldersIn ( string folderPath ) : IEnumerable
folderPath string
return IEnumerable

NativePath() public method

public NativePath ( string path ) : string
path string
return string

OpenRead() public method

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

OpenWrite() public method

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

PathCombine() public method

public PathCombine ( string items0, string items1 ) : string
items0 string
items1 string
return string

TryMove() public method

public TryMove ( string from, string to, bool deleteExistingTo ) : bool
from string
to string
deleteExistingTo bool
return bool

TryReadBinaryFile() public method

public TryReadBinaryFile ( string path, bool>.Func readMethod ) : bool
path string
readMethod bool>.Func
return bool

TryReadBinaryFile() public method

public TryReadBinaryFile ( string path, byte &contents ) : bool
path string
contents byte
return bool

TryReadTextFile() public method

public TryReadTextFile ( string path, string &contents ) : bool
path string
contents string
return bool

WriteFile() public method

public WriteFile ( string path, Action writeMethod ) : void
path string
writeMethod Action
return void

WriteFile() public method

public WriteFile ( string path, IEnumerable contents ) : void
path string
contents IEnumerable
return void

WriteFile() public method

public WriteFile ( string path, string contents ) : void
path string
contents string
return void