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

Inheritance: IMvxFileStore, IMvxFileStoreAsync
Afficher le fichier Open project: Everbridge/sm-MvvmCross

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
FullPath ( string path ) : string

Private Methods

Méthode 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 méthode

public DeleteFile ( string filePath ) : void
filePath string
Résultat void

DeleteFolder() public méthode

public DeleteFolder ( string folderPath, bool recursive ) : void
folderPath string
recursive bool
Résultat void

EnsureFolderExists() public méthode

public EnsureFolderExists ( string folderPath ) : void
folderPath string
Résultat void

Exists() public méthode

public Exists ( string path ) : bool
path string
Résultat bool

FolderExists() public méthode

public FolderExists ( string folderPath ) : bool
folderPath string
Résultat bool

FullPath() protected abstract méthode

protected abstract FullPath ( string path ) : string
path string
Résultat string

GetFilesIn() public méthode

public GetFilesIn ( string folderPath ) : IEnumerable
folderPath string
Résultat IEnumerable

GetFoldersIn() public méthode

public GetFoldersIn ( string folderPath ) : IEnumerable
folderPath string
Résultat IEnumerable

NativePath() public méthode

public NativePath ( string path ) : string
path string
Résultat string

OpenRead() public méthode

public OpenRead ( string path ) : Stream
path string
Résultat Stream

OpenWrite() public méthode

public OpenWrite ( string path ) : Stream
path string
Résultat Stream

PathCombine() public méthode

public PathCombine ( string items0, string items1 ) : string
items0 string
items1 string
Résultat string

TryMove() public méthode

public TryMove ( string from, string to, bool deleteExistingTo ) : bool
from string
to string
deleteExistingTo bool
Résultat bool

TryReadBinaryFile() public méthode

public TryReadBinaryFile ( string path, Byte &contents ) : bool
path string
contents Byte
Résultat bool

TryReadBinaryFile() public méthode

public TryReadBinaryFile ( string path, bool>.Func readMethod ) : bool
path string
readMethod bool>.Func
Résultat bool

TryReadBinaryFileAsync() public méthode

public TryReadBinaryFileAsync ( string path ) : Task>
path string
Résultat Task>

TryReadBinaryFileAsync() public méthode

public TryReadBinaryFileAsync ( string path, Func readMethod ) : Task
path string
readMethod Func
Résultat Task

TryReadTextFile() public méthode

public TryReadTextFile ( string path, string &contents ) : bool
path string
contents string
Résultat bool

TryReadTextFileAsync() public méthode

public TryReadTextFileAsync ( string path ) : Task>
path string
Résultat Task>

WriteFile() public méthode

public WriteFile ( string path, Action writeMethod ) : void
path string
writeMethod Action
Résultat void

WriteFile() public méthode

public WriteFile ( string path, IEnumerable contents ) : void
path string
contents IEnumerable
Résultat void

WriteFile() public méthode

public WriteFile ( string path, string contents ) : void
path string
contents string
Résultat void

WriteFileAsync() public méthode

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

WriteFileAsync() public méthode

public WriteFileAsync ( string path, IEnumerable contents ) : System.Threading.Tasks.Task
path string
contents IEnumerable
Résultat System.Threading.Tasks.Task

WriteFileAsync() public méthode

public WriteFileAsync ( string path, byte contents ) : System.Threading.Tasks.Task
path string
contents byte
Résultat System.Threading.Tasks.Task

WriteFileAsync() public méthode

public WriteFileAsync ( string path, string contents ) : System.Threading.Tasks.Task
path string
contents string
Résultat System.Threading.Tasks.Task