C# Class ZeroInstall.Store.Implementations.Archives.ZipGenerator

Creates a ZIP archive from a directory. Preserves execuable bits, symlinks and timestamps.
Inheritance: ArchiveGenerator
Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
HandleDirectory ( DirectoryInfo directory ) : void
HandleFile ( FileInfo file, bool executable = false ) : void
HandleSymlink ( FileSystemInfo symlink, byte data ) : void

Private Methods

Méthode Description
GetUnixTimestamp ( System.DateTime timestamp ) : byte[]

Encodes a timestamp as a ZipEntry.ExtraData in a format that ensures it will be read for ZipEntry.DateTime, preserving second-accuracy.

ZipGenerator ( [ sourceDirectory, [ stream ) : System

Prepares to generate a ZIP archive from a directory.

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

HandleDirectory() protected méthode

protected HandleDirectory ( DirectoryInfo directory ) : void
directory System.IO.DirectoryInfo
Résultat void

HandleFile() protected méthode

protected HandleFile ( FileInfo file, bool executable = false ) : void
file System.IO.FileInfo
executable bool
Résultat void

HandleSymlink() protected méthode

protected HandleSymlink ( FileSystemInfo symlink, byte data ) : void
symlink System.IO.FileSystemInfo
data byte
Résultat void