Module magic::flags
[−]
[src]
Bitmask flags which control libmagic
behaviour
Structs
CookieFlags |
Bitmask flags that specify how |
Constants
APPLE |
Return the Apple creator and type |
CHECK |
Check the magic database for consistency and print warnings to |
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 |
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_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 |
RAW |
Don't translate unprintable characters to a |
SYMLINK |
If the file queried is a symlink, follow it |