Tar

object Tar(source)

Plain USTAR tar of text files, written the same way on every target: sorted names, mode 0644, uid and gid 0, mtime 0, no compression, two zero blocks at the end. read accepts only archives that write would have produced, so reading and writing back gives the same bytes.

Properties

Link copied to clipboard
const val MAX_ENTRIES: Int = 4096
Link copied to clipboard
const val MAX_ENTRY: Int
Link copied to clipboard
const val MAX_TOTAL: Int

Functions

Link copied to clipboard

Null when path can be stored: relative, no .., no empty parts, printable ASCII.

Link copied to clipboard
fun read(bytes: ByteArray): TarRead

Entries of bytes, or the first reason it is not a canonical archive.

Link copied to clipboard

The archive of files; every path must pass problem.