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

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

Protected Methods

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

Private Methods

Method 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 method

protected Dispose ( bool disposing ) : void
disposing bool
return void

HandleDirectory() protected method

protected HandleDirectory ( DirectoryInfo directory ) : void
directory System.IO.DirectoryInfo
return void

HandleFile() protected method

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

HandleSymlink() protected method

protected HandleSymlink ( FileSystemInfo symlink, byte data ) : void
symlink System.IO.FileSystemInfo
data byte
return void