module Zip::FileInfo

Overview

Base type for file information related to zip entries.

Direct including types

Defined in:

zip/file_info.cr

Constant Summary

DATA_DESCRIPTOR_SIGNATURE = 134695760
DEFLATE_END_SIGNATURE = Bytes[80, 75, 7, 8]
SIGNATURE = 67324752

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(filename : String, time = Time.now, comment = "", extra = Bytes.empty) #

[View source]

Instance Method Detail

def comment #

[View source]
def comment=(comment) #

[View source]
def compressed_size #

[View source]
def compressed_size=(compressed_size) #

[View source]
def compression_method #

[View source]
def compression_method=(compression_method) #

[View source]
def crc32 #

[View source]
def crc32=(crc32) #

[View source]
def dir? #

Returns true if this entry is a directory.


[View source]
def extra #

[View source]
def extra=(extra) #

[View source]
def file? #

Returns true if this entry is a file.


[View source]
def filename #

[View source]
def filename=(filename) #

[View source]
def general_purpose_bit_flag #

[View source]
def general_purpose_bit_flag=(general_purpose_bit_flag) #

[View source]
def offset #

[View source]
def offset=(offset) #

[View source]
def time : Time #

[View source]
def time=(time : Time) #

[View source]
def uncompressed_size #

[View source]
def uncompressed_size=(uncompressed_size) #

[View source]
def version : UInt16 #

[View source]
def version=(version : UInt16) #

[View source]