public VirtualFileStorageDriver(VirtualFileStorage storage, VirtualFileStorageDriver parent, string rootPath) { Storage = storage; Parent = parent; RootPath = rootPath; Storage.AddDriver(this); }
public override void Close() { if (_fs != null) { --_fs._countOpenStream; _fs = null; } base.Close(); }
public TrackedStream(VirtualFileStorage fs, Stream s) { _fs = fs; ++_fs._countOpenStream; _s = s; }
internal VirtualFileStorageDriver(VirtualFileStorage storage) { Storage = storage; Parent = null; RootPath = String.Empty; }
public VirtualFileStorageDriverRootZip(VirtualFileStorage storage, VirtualFileStorageDriver parent, string rootPath) : base(storage, parent, rootPath) { Debug.Assert(rootPath.EndsWith("\\")); _file = new ZipArchive(File.OpenRead(rootPath.Substring(0, rootPath.Length - 1))); }
internal VirtualFileStorageDriverRoot(VirtualFileStorage storage) : base(storage) { }