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