C# Class Cirrious.MvvmCross.Plugins.File.MvxFileStore

Inheritance: IMvxFileStore, IMvxFileStoreAsync
显示文件 Open project: Everbridge/sm-MvvmCross

Public Methods

Method Description
DeleteFile ( string filePath ) : 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, Byte &contents ) : bool
TryReadBinaryFile ( string path, bool>.Func readMethod ) : bool
TryReadBinaryFileAsync ( string path ) : Task>
TryReadBinaryFileAsync ( string path, Func readMethod ) : Task
TryReadTextFile ( string path, string &contents ) : bool
TryReadTextFileAsync ( string path ) : Task>
WriteFile ( string path, Action writeMethod ) : void
WriteFile ( string path, IEnumerable contents ) : void
WriteFile ( string path, string contents ) : void
WriteFileAsync ( string path, Task>.Func writeMethod ) : System.Threading.Tasks.Task
WriteFileAsync ( string path, IEnumerable contents ) : System.Threading.Tasks.Task
WriteFileAsync ( string path, byte contents ) : System.Threading.Tasks.Task
WriteFileAsync ( string path, string contents ) : System.Threading.Tasks.Task

Protected Methods

Method Description
FullPath ( string path ) : string

Private Methods

Method Description
TryReadFileCommon ( string path, bool>.Func streamAction ) : bool
TryReadFileCommonAsync ( string path, Func streamAction ) : Task
WriteFileCommon ( string path, Action streamAction ) : void
WriteFileCommonAsync ( string path, Task>.Func streamAction ) : System.Threading.Tasks.Task

Method Details

DeleteFile() public method

public DeleteFile ( string filePath ) : void
filePath 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

FullPath() protected abstract method

protected abstract FullPath ( string path ) : string
path string
return string

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, Byte &contents ) : bool
path string
contents Byte
return bool

TryReadBinaryFile() public method

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

TryReadBinaryFileAsync() public method

public TryReadBinaryFileAsync ( string path ) : Task>
path string
return Task>

TryReadBinaryFileAsync() public method

public TryReadBinaryFileAsync ( string path, Func readMethod ) : Task
path string
readMethod Func
return Task

TryReadTextFile() public method

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

TryReadTextFileAsync() public method

public TryReadTextFileAsync ( string path ) : Task>
path string
return Task>

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

WriteFileAsync() public method

public WriteFileAsync ( string path, Task>.Func writeMethod ) : System.Threading.Tasks.Task
path string
writeMethod Task>.Func
return System.Threading.Tasks.Task

WriteFileAsync() public method

public WriteFileAsync ( string path, IEnumerable contents ) : System.Threading.Tasks.Task
path string
contents IEnumerable
return System.Threading.Tasks.Task

WriteFileAsync() public method

public WriteFileAsync ( string path, byte contents ) : System.Threading.Tasks.Task
path string
contents byte
return System.Threading.Tasks.Task

WriteFileAsync() public method

public WriteFileAsync ( string path, string contents ) : System.Threading.Tasks.Task
path string
contents string
return System.Threading.Tasks.Task