Module magic::flags [] [src]

Bitmask flags which control libmagic behaviour

Structs

CookieFlags

Bitmask flags that specify how Cookie functions should behave

Constants

APPLE

Return the Apple creator and type

CHECK

Check the magic database for consistency and print warnings to stderr

COMPRESS

If the file is compressed, unpack it and look at the contents

CONTINUE

Return all matches, not just the first

DEBUG

Print debugging messages to stderr

DEVICES

If the file is a block or character special device, then open the device and try to look in its contents

ERROR

Treat operating system errors while trying to open files and follow symlinks as real errors, instead of printing them in the magic buffer

MIME

A shorthand for MIME_TYPE | MIME_ENCODING

MIME_ENCODING

Return a MIME encoding, instead of a textual description

MIME_TYPE

Return a MIME type string, instead of a textual description

NONE

No special handling

NO_CHECK_APPTYPE

Check for EMX application type (only on EMX)

NO_CHECK_BUILTIN

No built-in tests; only consult the magic file

NO_CHECK_CDF

Don't get extra information on MS Composite Document Files

NO_CHECK_COMPRESS

Don't look inside compressed files

NO_CHECK_ELF

Don't print ELF details

NO_CHECK_ENCODING

Don't check text encodings

NO_CHECK_SOFT

Don't consult magic files

NO_CHECK_TAR

Don't examine tar files

NO_CHECK_TEXT

Don't check for various types of text files

NO_CHECK_TOKENS

Don't look for known tokens inside ascii files

PRESERVE_ATIME

On systems that support utime(2) or utimes(2), attempt to preserve the access time of files analyzed

RAW

Don't translate unprintable characters to a \ooo octal representation

SYMLINK

If the file queried is a symlink, follow it