public IDirectory OpenDirectory(string path, OpenDirectoryMode mode) { path = PathTools.Normalize(path); if (IsSplitFile(path)) { throw new DirectoryNotFoundException(path); } IDirectory parentDir = BaseFileSystem.OpenDirectory(path, OpenDirectoryMode.All); var dir = new ConcatenationDirectory(this, parentDir, mode); return(dir); }
public IDirectory OpenDirectory(string path, OpenDirectoryMode mode) { path = PathTools.Normalize(path); if (IsConcatenationFile(path)) { ThrowHelper.ThrowResult(ResultFs.PathNotFound); } IDirectory parentDir = BaseFileSystem.OpenDirectory(path, OpenDirectoryMode.All); var dir = new ConcatenationDirectory(this, parentDir, mode); return(dir); }