class

ActiveBackup::Tar::Writer

Inherits Reference < Object

Constructors

new(io : IO)
Source

Instance methods

add_dir(name : String, mtime : Time = Time.utc, mode : Int32 = 493) : Nil
Source
add_file(name : String, size : Int64, mtime : Time = Time.utc, mode : Int32 = 420, & : IO -> ) : Nil

Streaming form: the block writes exactly size bytes to the io.

Source
add_file(name : String, data : String | Bytes, mtime : Time = Time.utc, mode : Int32 = 420) : Nil
Source
close

Two zero blocks mark the end of the archive (readers stop here; record-level blocking padding is not required by GNU tar).

Source