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

Print warnings to stderr

COMPRESS

Check inside compressed files

CONTINUE

Return all matches

DEBUG

Turn on debugging

DEVICES

Look at the contents of devices

ERROR

Handle ENOENT etc as real errors

MIME

Return the MIME type and encoding

MIME_ENCODING

Return the MIME encoding

MIME_TYPE

Return the MIME type

NONE

No flags

NO_CHECK_APPTYPE

Don't check application type

NO_CHECK_BUILTIN

No built-in tests; only consult the magic file

NO_CHECK_CDF

Don't check for cdf files

NO_CHECK_COMPRESS

Don't check for compressed files

NO_CHECK_ELF

Don't check for elf details

NO_CHECK_ENCODING

Don't check text encodings

NO_CHECK_SOFT

Don't check magic entries

NO_CHECK_TAR

Don't check for tar files

NO_CHECK_TEXT

Don't check for text files

NO_CHECK_TOKENS

Don't check tokens

PRESERVE_ATIME

Restore access time on exit

RAW

Don't translate unprintable chars

SYMLINK

Follow symlinks