module Archive

Overview

Handles archive parsing and printing.

Included Modules

Direct including types

Defined in:

modules/archive.cr

Constant Summary

HALF_YEAR = 31536000

Instance Method Summary

Instance Method Detail

def archive(file_name : String) : String #

Returns the content of an archive by reading from cache or calling #cache_archive to generate the cache.


[View source]
def cache_archive(file_name : String, cache_file : String) : String #

Generates the cache at a path for an archive and returns the string so the cache doesn't have to be read again.


[View source]