Beispiel #1
0
 public DirTree WithSubDir(string relativePath, DirTree subDir)
 {
     foreach (var pair in subDir._pathToContents)
     {
         var newPath = Path.Combine(relativePath, pair.Key);
         _pathToContents[newPath] = pair.Value;
     }
     return(this);
 }
Beispiel #2
0
 public DirTree WithSubDir(string relativePath, DirTree subDir)
 {
     foreach (var pair in subDir._pathToContents)
     {
         var newPath = Path.Combine(relativePath, pair.Key);
         _pathToContents[newPath] = pair.Value;
     }
     return this;
 }