public class TarArchiver extends Archiver:
TAR archive implementation.
The implementation reads and writes the POSIX ustar container directly from the Klyn runtime. It stores regular files and recreates the destination directory tree when unpacking.
import klyn.io
import klyn.io.archives
tar = TarArchiver()
tar.makeArchive("docs", "docs.tar", FileAccessMode.OVERWRITE)
tar.unpackArchive("docs.tar", "/tmp/docs", FileAccessMode.OVERWRITE)| Modifier and Type | Member | Description |
|---|---|---|
| public | TarArchiverTarArchiver(): |
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. |