Example #1
0
        public IDirectory OpenDirectory(string path, OpenDirectoryMode mode)
        {
            path = PathTools.Normalize(path);

            if (IsConcatenationFile(path))
            {
                throw new DirectoryNotFoundException(path);
            }

            IDirectory parentDir = BaseFileSystem.OpenDirectory(path, OpenDirectoryMode.All);
            var        dir       = new ConcatenationDirectory(this, parentDir, mode);

            return(dir);
        }
Example #2
0
        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);
        }