C# Class withSIX.Core.Presentation.Services.CompressionUtil

Inheritance: ICompressionUtil, IPresentationService
Afficher le fichier Open project: SIXNetworks/withSIX.Desktop

Méthodes publiques

Méthode Description
CreateTar ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
CreateZip ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
PackFiles ( string>.IEnumerable items, IAbsoluteFilePath path ) : void
UnpackGzip ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile, ITProgress progress = null ) : void
UnpackInternal ( IAbsoluteFilePath sourceFile, IAbsoluteDirectoryPath outputFolder, bool overwrite = false, bool fullPath = true, bool checkFileIntegrity = true, ITProgress progress = null ) : void
UnpackSingleInternal ( string sourceFile, string destFile ) : void

Private Methods

Méthode Description
GetArchiveWithGzWorkaround ( IAbsoluteFilePath sourceFile, string ext ) : IArchive
GetString ( byte bytes ) : string
ReadHeader ( IAbsoluteFilePath sourceFile ) : string
TryReadHeader ( IAbsoluteFilePath sourceFile ) : string
TryUnpackArchive ( IAbsoluteFilePath destFile, ITProgress progress, GZipArchive archive ) : void
UnpackArchive ( IAbsoluteDirectoryPath outputFolder, bool overwrite, IArchive archive, ExtractionOptions options, IAbsoluteFilePath sourceFile ) : void

Method Details

CreateTar() public méthode

public CreateTar ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
directory IAbsoluteDirectoryPath
outputFile IAbsoluteFilePath
Résultat void

CreateZip() public méthode

public CreateZip ( IAbsoluteDirectoryPath directory, IAbsoluteFilePath outputFile ) : void
directory IAbsoluteDirectoryPath
outputFile IAbsoluteFilePath
Résultat void

PackFiles() public méthode

public PackFiles ( string>.IEnumerable items, IAbsoluteFilePath path ) : void
items string>.IEnumerable
path IAbsoluteFilePath
Résultat void

UnpackGzip() public méthode

public UnpackGzip ( IAbsoluteFilePath sourceFile, IAbsoluteFilePath destFile, ITProgress progress = null ) : void
sourceFile IAbsoluteFilePath
destFile IAbsoluteFilePath
progress ITProgress
Résultat void

UnpackInternal() public méthode

public UnpackInternal ( IAbsoluteFilePath sourceFile, IAbsoluteDirectoryPath outputFolder, bool overwrite = false, bool fullPath = true, bool checkFileIntegrity = true, ITProgress progress = null ) : void
sourceFile IAbsoluteFilePath
outputFolder IAbsoluteDirectoryPath
overwrite bool
fullPath bool
checkFileIntegrity bool
progress ITProgress
Résultat void

UnpackSingleInternal() public méthode

public UnpackSingleInternal ( string sourceFile, string destFile ) : void
sourceFile string
destFile string
Résultat void