W3cubDocs

/Crystal 0.31

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, read_only: true]
SIGNATURE = 67324752

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def commentSource

def comment=(comment)Source

def compressed_sizeSource

def compressed_size=(compressed_size)Source

def compression_methodSource

def compression_method=(compression_method)Source

def crc32Source

def crc32=(crc32)Source

def dir?Source

Returns true if this entry is a directory.

def extraSource

def extra=(extra)Source

def file?Source

Returns true if this entry is a file.

def filenameSource

def filename=(filename)Source

def general_purpose_bit_flagSource

def general_purpose_bit_flag=(general_purpose_bit_flag)Source

def offsetSource

def offset=(offset)Source

def time : TimeSource

def time=(time : Time)Source

def uncompressed_sizeSource

def uncompressed_size=(uncompressed_size)Source

def version : UInt16Source

def version=(version : UInt16)Source

© 2012–2019 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.31.1/Zip/FileInfo.html