module Tarball

Overview

Reading tar archive file.

require "tarball"

# Extracts all files in "archive.tar" to under the "data" directory.
Tarball.extract_all("archive.tar", "data")

Defined in:

tarball.cr

Constant Summary

BLOCK_SIZE = 512
VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.extract_all(archive_file : String, dir = ".") #

Extracts all file system objects in the tar archive file.


[View source]
def self.open(archive_file : String) #

Opens tar archive from file.


[View source]
def self.open(archive_file : String, &) #

Opens tar archive file and yields given block.


[View source]