public PackageBuilder AddFolder(string name, DateTime lastWrite) { var item = new FolderEntry(name, _currentSubhierarchy, lastWrite); _currentSubhierarchy.Add(item); return(new PackageBuilder(item, _packageRoot)); }
public override void VisitFolder(FolderEntry entry) { string combinedPath = Path.Combine(_folder, entry.RelativePath); CheckAndPrepareWritePathForFolder(combinedPath); SetDestinationDate(combinedPath, entry); VisitChildren(entry); }
private static void WriteFolderEntryToZip(ZipOutputStream zip, FolderEntry entry) { var zipEntry = new ZipEntry(entry.RelativePath + "/") { DateTime = entry.LastWriteTime }; zip.PutNextEntry(zipEntry); }
private static void WriteFolderEntryToZip(ZipOutputStream zip, FolderEntry entry) { var zipEntry = new ZipEntry(entry.RelativePath + "/") {DateTime = entry.LastWriteTime}; zip.PutNextEntry(zipEntry); }
public override void VisitFolder(FolderEntry entry) { WriteFolderEntryToZip(_zip, entry); VisitChildren(entry); }
public PackageBuilder AddFolder(string name, DateTime lastWrite) { var item = new FolderEntry(name, _currentSubhierarchy, lastWrite); _currentSubhierarchy.Add(item); return new PackageBuilder(item, _packageRoot); }
public virtual void VisitFolder(FolderEntry entry) { VisitChildren(entry); }