public void Reload(string source) { if (SaveAfterDispose) _file?.Save(); _file?.Dispose(); if (!ZipFile.IsZipFile(source)) return; _file = ZipFile.Read(source); ResetDirectory(_file, InternalZipDirectory.ReadZipDirectory(_file)); Reset(OriginalPath, null); }
public InZipFileSystem(ZipFile? file) : base(null, "zip::", InternalZipDirectory.ReadZipDirectory(file), file, string.Empty) { _file = file; SaveAfterDispose = true; }