enum Zip::FileFlag

Overview

Flags used by Archive#name_locate, Archive#stat, Archive#open, etc.

Defined in:

zip/constants.cr

Enum Members

ENC_GUESS = 0

guess string encoding (default)

NOCASE = 1

ignore case on name lookup

NODIR = 2

ignore directory component

COMPRESSED = 4

read compressed data

UNCHANGED = 8

use original data, ignoring changes

RECOMPRESS = 16

force recompression of data

ENCRYPTED = 32

read encrypted data (implies ZIP_FL_COMPRESSED)

ENC_RAW = 64

get unmodified string

ENC_STRICT = 128

follow specification strictly

LOCAL = 256

in local header

CENTRAL = 512

in central directory

ENC_UTF_8 = 2048

string is UTF-8 encoded

ENC_CP437 = 4096

string is CP437 encoded

OVERWRITE = 8192

zip_file_add: if file with name exists, overwrite (replace) it

Instance Method Summary

Instance Method Detail

def central? #

[View source]
def compressed? #

[View source]
def enc_cp437? #

[View source]
def enc_guess? #

[View source]
def enc_raw? #

[View source]
def enc_strict? #

[View source]
def enc_utf_8? #

[View source]
def encrypted? #

[View source]
def local? #

[View source]
def nocase? #

[View source]
def nodir? #

[View source]
def none? #

[View source]
def overwrite? #

[View source]
def recompress? #

[View source]
def unchanged? #

[View source]