Example #1
0
 public FilePathMap(FilePathMap basePath, string fileOrDirectoryName)
 {
     _up           = basePath;
     _root         = basePath._root;
     _pathName     = basePath._pathName == "" ? fileOrDirectoryName : $"{basePath._pathName}/{fileOrDirectoryName}";
     _currentPaths = basePath._currentPaths.Select(p => p[fileOrDirectoryName]).Where(p => p.Exists).ToList();
 }
Example #2
0
 public FilePathMap(IEnumerable <IFilePath> basePaths)
 {
     _root         = this;
     _pathName     = "";
     _up           = this;
     _currentPaths = basePaths.Where(p => p.Exists).ToList();
 }