Inheritance: EntryContainer
Ejemplo n.º 1
0
        public PackageBuilder AddFolder(string name, DateTime lastWrite)
        {
            var item = new FolderEntry(name, _currentSubhierarchy, lastWrite);

            _currentSubhierarchy.Add(item);
            return(new PackageBuilder(item, _packageRoot));
        }
Ejemplo n.º 2
0
        public override void VisitFolder(FolderEntry entry)
        {
            string combinedPath = Path.Combine(_folder, entry.RelativePath);

            CheckAndPrepareWritePathForFolder(combinedPath);
            SetDestinationDate(combinedPath, entry);
            VisitChildren(entry);
        }
Ejemplo n.º 3
0
        private static void WriteFolderEntryToZip(ZipOutputStream zip, FolderEntry entry)
        {
            var zipEntry = new ZipEntry(entry.RelativePath + "/")
            {
                DateTime = entry.LastWriteTime
            };

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