示例#1
0
        public IFileSystem LoadFileSystem(FileBucketMeta meta)
        {
            IFileSystem fileSystem;

            if (!_fileSystemsCache.TryGetValue(meta.BucketId, out fileSystem))
            {
                fileSystem = new LocalFileSystem(meta.Config["BaseVirtualPath"]);
                _fileSystemsCache.TryAdd(meta.BucketId, fileSystem);
            }

            return fileSystem;
        }
示例#2
0
 protected LocalFileSystemEntry(FileSystemInfo fileSystemInfo, LocalFileSystem fileSystem)
 {
     FileSystemInfo = fileSystemInfo;
     FileSystem = fileSystem;
 }
示例#3
0
 public LocalFile(FileInfo file, LocalFileSystem fileSystem)
     : base(file, fileSystem)
 {
 }
示例#4
0
 public LocalDirectory(DirectoryInfo directory, LocalFileSystem fileSystem)
     : base(directory, fileSystem)
 {
 }