C# 클래스 ZeroInstall.Store.Implementations.Archives.ZipGenerator

Creates a ZIP archive from a directory. Preserves execuable bits, symlinks and timestamps.
상속: ArchiveGenerator
파일 보기 프로젝트 열기: 0install/0install-win 1 사용 예제들

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
HandleDirectory ( DirectoryInfo directory ) : void
HandleFile ( FileInfo file, bool executable = false ) : void
HandleSymlink ( FileSystemInfo symlink, byte data ) : void

비공개 메소드들

메소드 설명
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.

메소드 상세

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

HandleDirectory() 보호된 메소드

protected HandleDirectory ( DirectoryInfo directory ) : void
directory System.IO.DirectoryInfo
리턴 void

HandleFile() 보호된 메소드

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

HandleSymlink() 보호된 메소드

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