示例#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);
        }
示例#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);
        }