public IEnumerable <string> ListFilePaths(string folderPath, bool recursive = false) { return(FileUtils.WithStorage(s => { return ListFilePaths(s, folderPath, recursive); })); }
public override Task <T> WithFileReadAsync2 <T>(string path, Func <Stream, Task <T> > op) { return(FileUtils.WithFileReadAsyncT(path, op)); }
public override Task <T> WithFileReadAsync <T>(string path, Func <Stream, T> op) { return(TaskEx.FromResult(FileUtils.WithFileReadAsyncG <T>(path, op))); }
public override Task WithFileWriteAsync(string path, Func <Stream, Task> f) { return(FileUtils.WithFileAsync(path, f, FileAccess.ReadWrite, FileShare.Read)); }
public override Task WithFileReadAsync(string path, Func <Stream, Task> op) { return(FileUtils.WithFileReadAsync(path, op)); }
public override Task Delete(string relativePath) { FileUtils.WithStorage(s => s.DeleteFile(relativePath)); return(AsyncTasks.Noop()); }