TarArchiver
class in package klyn.io.archives

    public class TarArchiver extends Archiver:

Archiver
└ TarArchiver

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)

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | TarArchiver `TarArchiver():` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public native override | makeArchive `makeArchive(sourcePath as String, archivePath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException` | Creates or extracts an archive.
public native override | unpackArchive `unpackArchive(archivePath as String, destinationPath as String, mode as FileAccessMode = FileAccessMode.CREATE_NEW) as Void throws IOException` | Creates or extracts an archive.

Methods inherited from Archiver: getInstance, makeArchive, unpackArchive