Beispiel #1
0
 public Async <Unit> WriteFileAsync(string p, FileContent c)
 {
     return(() =>
     {
         var d = Root.GetNameInExistingDirectory(p);
         d.Item1.SetFile(d.Item2, c.ToList());
         return Unit.Default;
     });
 }
Beispiel #2
0
 public static Tuple <VirtualDir, string> GetNameInExistingDirectory(this VirtualDir dir, string path)
 {
     return(dir.GetNameInExistingDirectory(path.Split(Path.DirectorySeparatorChar)));
 }