private void WriteFileEntryToZip(FileEntry entry) { _zip.PutNextEntry(CreateZipEntry(entry)); var writer = new BinaryWriter(_zip); writer.Write(entry.Content); writer.Flush(); }
public override void VisitFile(FileEntry entry) { WriteFileEntryToZip(entry); }
public override void VisitFile(FileEntry entry) { string combinedPath = Path.Combine(_folder, entry.RelativePath); CheckWritePath(combinedPath); WriteFileEntryTo(entry, combinedPath); }
private static void WriteFileEntryTo(FileEntry entry, string combinedPath) { File.WriteAllBytes(combinedPath, entry.Content); SetDestinationDate(combinedPath, entry); }
public virtual void VisitFile(FileEntry entry) { }