enum Magic::MagicFlags

Overview

Flags for Magic open

Defined in:

magic/magic.cr

Enum Members

DEBUG = 1

Turn on debuggin

SYMLINK = 2

Follow symlinks

COMPRESS = 4

Check inside compressed files

DEVICES = 8

Look at the contents of devices

MIME_TYPE = 16

Return the MIME type

CONTINUE = 32

Return all matches

CHECK = 64

Print warnings to stderr

PRESERVE_ATIME = 128

Restore access time on exit

RAW = 256

Don't convert unprintable chars

ERROR = 512

Handle ENOENT etc as real errors

MIME_ENCODING = 1024

Return the MIME encoding

MIME = 1040
APPLE = 2048

Return the Apple creator/type

EXTENSION = 16777216

Return a /-separated list of extensions

COMPRESS_TRANSP = 33554432

Check inside compressed files but not report compression

NODESC = 16780304
NO_CHECK_COMPRESS = 4096

Don't check for compressed files

NO_CHECK_TAR = 8192

Don't check for tar files

NO_CHECK_SOFT = 16384

Don't check magic entries

NO_CHECK_APPTYPE = 32768

Don't check application type

NO_CHECK_ELF = 65536

Don't check for elf details

NO_CHECK_TEXT = 131072

Don't check for text files

NO_CHECK_CDF = 262144

Don't check for cdf files

NO_CHECK_CSV = 524288

Don't check for CSV files

NO_CHECK_TOKENS = 1048576

Don't check tokens

NO_CHECK_ENCODING = 2097152

Don't check text encodings

NO_CHECK_JSON = 4194304

Don't check for JSON files

NO_CHECK_BUILTIN = 8368128

No built-in tests; only consult the magic file

Instance Method Summary

Instance Method Detail

def apple? #

[View source]
def check? #

[View source]
def compress? #

[View source]
def compress_transp? #

[View source]
def continue? #

[View source]
def debug? #

[View source]
def devices? #

[View source]
def error? #

[View source]
def extension? #

[View source]
def mime? #

[View source]
def mime_encoding? #

[View source]
def mime_type? #

[View source]
def no_check_apptype? #

[View source]
def no_check_builtin? #

[View source]
def no_check_cdf? #

[View source]
def no_check_compress? #

[View source]
def no_check_csv? #

[View source]
def no_check_elf? #

[View source]
def no_check_encoding? #

[View source]
def no_check_json? #

[View source]
def no_check_soft? #

[View source]
def no_check_tar? #

[View source]
def no_check_text? #

[View source]
def no_check_tokens? #

[View source]
def nodesc? #

[View source]
def none? #

[View source]
def preserve_atime? #

[View source]
def raw? #

[View source]
def symlink? #

[View source]