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(); }
public FilePathMap(IEnumerable <IFilePath> basePaths) { _root = this; _pathName = ""; _up = this; _currentPaths = basePaths.Where(p => p.Exists).ToList(); }