private void SaveInfo() { if (Info == null) { var infoFile = new InfoFile { CreationDate = DateTime.Now }; Info = infoFile; } _outputStream.PutNextEntry(new ZipEntry("info.xml")); Info.Save(_outputStream); _outputStream.CloseEntry (); }
private void ReadInfo() { _info = InfoFile.Read(InternalOpenFile("info.xml")); }
private void CreateTemporaryFile() { _outputStream = new ZipOutputStream(File.Create(FilePath)); _outputStream.SetLevel(0); Info = new InfoFile { CreationDate = DateTime.Now, DeletedFiles = new HashSet<string>() }; }