module Tarball

Overview

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.4"

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 file.


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

Opens tar archive file and yields given block.


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

Opens gzipped tar archive file.


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

Opens gzipped tar archive file and yields given block.


[View source]