Inheritance: EntryContainer
Esempio 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));
        }
Esempio n. 2
0
        public override void VisitFolder(FolderEntry entry)
        {
            string combinedPath = Path.Combine(_folder, entry.RelativePath);

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

            zip.PutNextEntry(zipEntry);
        }
Esempio n. 4
0
 private static void WriteFolderEntryToZip(ZipOutputStream zip, FolderEntry entry)
 {
     var zipEntry = new ZipEntry(entry.RelativePath + "/") {DateTime = entry.LastWriteTime};
     zip.PutNextEntry(zipEntry);
 }
Esempio n. 5
0
 public override void VisitFolder(FolderEntry entry)
 {
     WriteFolderEntryToZip(_zip, entry);
     VisitChildren(entry);
 }
Esempio n. 6
0
 public override void VisitFolder(FolderEntry entry)
 {
     string combinedPath = Path.Combine(_folder, entry.RelativePath);
     CheckAndPrepareWritePathForFolder(combinedPath);
     SetDestinationDate(combinedPath, entry);
     VisitChildren(entry);
 }
Esempio 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);
 }
Esempio n. 8
0
 public virtual void VisitFolder(FolderEntry entry)
 {
     VisitChildren(entry);
 }
Esempio n. 9
0
 public override void VisitFolder(FolderEntry entry)
 {
     WriteFolderEntryToZip(_zip, entry);
     VisitChildren(entry);
 }
Esempio n. 10
0
 public virtual void VisitFolder(FolderEntry entry)
 {
     VisitChildren(entry);
 }