public class TgzArchiver extends Archiver:
TGZ archive implementation.
TGZ archives are generated as a TAR container wrapped in a gzip stream. The current runtime writes deterministic stored-deflate gzip blocks, which keeps the implementation dependency-free while still producing a valid .tgz file.
import klyn.io
import klyn.io.archives
tgz = TgzArchiver()
tgz.makeArchive("docs", "docs.tgz", FileAccessMode.OVERWRITE)
tgz.unpackArchive("docs.tgz", "/tmp/docs", FileAccessMode.OVERWRITE)| Modifier and Type | Member | Description |
|---|---|---|
| public | TgzArchiverTgzArchiver(): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native override | makeArchivemakeArchive(sourcePath as String, archivePath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException |
Creates or extracts an archive. |
| public native override | unpackArchiveunpackArchive(archivePath as String, destinationPath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException |
Creates or extracts an archive. |