enum Magic::MagicFlags
Overview
Flags for Magic open
Defined in:
magic/magic.crEnum 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
- #apple?
- #check?
- #compress?
- #compress_transp?
- #continue?
- #debug?
- #devices?
- #error?
- #extension?
- #mime?
- #mime_encoding?
- #mime_type?
- #no_check_apptype?
- #no_check_builtin?
- #no_check_cdf?
- #no_check_compress?
- #no_check_csv?
- #no_check_elf?
- #no_check_encoding?
- #no_check_json?
- #no_check_soft?
- #no_check_tar?
- #no_check_text?
- #no_check_tokens?
- #nodesc?
- #none?
- #preserve_atime?
- #raw?
- #symlink?