enum

Magic::MagicFlags

Inherits Enum < Comparable < Value < Object

Flags for Magic open

Constants

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

None = 0
All = 58720255

Instance methods

apple?

Returns true if this enum value contains APPLE

Source
check?

Returns true if this enum value contains CHECK

Source
compress?

Returns true if this enum value contains COMPRESS

Source
compress_transp?

Returns true if this enum value contains COMPRESS_TRANSP

Source
continue?

Returns true if this enum value contains CONTINUE

Source
debug?

Returns true if this enum value contains DEBUG

Source
devices?

Returns true if this enum value contains DEVICES

Source
error?

Returns true if this enum value contains ERROR

Source
extension?

Returns true if this enum value contains EXTENSION

Source
mime?

Returns true if this enum value contains MIME

Source
mime_encoding?

Returns true if this enum value contains MIME_ENCODING

Source
mime_type?

Returns true if this enum value contains MIME_TYPE

Source
no_check_apptype?

Returns true if this enum value contains NO_CHECK_APPTYPE

Source
no_check_builtin?

Returns true if this enum value contains NO_CHECK_BUILTIN

Source
no_check_cdf?

Returns true if this enum value contains NO_CHECK_CDF

Source
no_check_compress?

Returns true if this enum value contains NO_CHECK_COMPRESS

Source
no_check_csv?

Returns true if this enum value contains NO_CHECK_CSV

Source
no_check_elf?

Returns true if this enum value contains NO_CHECK_ELF

Source
no_check_encoding?

Returns true if this enum value contains NO_CHECK_ENCODING

Source
no_check_json?

Returns true if this enum value contains NO_CHECK_JSON

Source
no_check_soft?

Returns true if this enum value contains NO_CHECK_SOFT

Source
no_check_tar?

Returns true if this enum value contains NO_CHECK_TAR

Source
no_check_text?

Returns true if this enum value contains NO_CHECK_TEXT

Source
no_check_tokens?

Returns true if this enum value contains NO_CHECK_TOKENS

Source
nodesc?

Returns true if this enum value contains NODESC

Source
none?
Source
preserve_atime?

Returns true if this enum value contains PRESERVE_ATIME

Source
raw?

Returns true if this enum value contains RAW

Source