39 string buffer(data data, softint flags);
60 string file(softstring fileName);
71 string file(softstring fileName, softint flags);
const MAGIC_MIME_ENCODING
Return the MIME encoding.
Definition: magic.dox.h:100
const MAGIC_COMPRESS
Check inside compressed files.
Definition: magic.dox.h:88
constructor()
Constructs a dummy.
const MAGIC_DEVICES
Look at the contents of devices.
Definition: magic.dox.h:94
const MAGIC_NO_CHECK_ENCODING
Don't check text encodings.
Definition: magic.dox.h:116
const MAGIC_NO_CHECK_APPTYPE
Don't check application type.
Definition: magic.dox.h:106
const MAGIC_NO_CHECK_TOKENS
Don't check tokens.
Definition: magic.dox.h:124
Qore::Magic namespace.
Definition: magic.dox.h:2
A low level wrapper around libmagic.
Definition: magic.dox.h:18
const MAGIC_ERROR
Handle ENOENT etc as real errors.
Definition: magic.dox.h:96
const MAGIC_APPLE
Return the Apple creator and type.
Definition: magic.dox.h:84
const MAGIC_CONTINUE
Return all matches.
Definition: magic.dox.h:90
const MAGIC_DEBUG
Turn on debugging.
Definition: magic.dox.h:92
const MAGIC_MIME_TYPE
Return the MIME type.
Definition: magic.dox.h:102
const MAGIC_RAW
Don't translate unprintable chars.
Definition: magic.dox.h:128
const MAGIC_NO_CHECK_ELF
Don't check for elf details.
Definition: magic.dox.h:114
const MAGIC_NO_CHECK_CDF
Don't check for cdf files.
Definition: magic.dox.h:110
const MAGIC_NO_CHECK_COMPRESS
Don't check for compressed files.
Definition: magic.dox.h:112
const MAGIC_PRESERVE_ATIME
Restore access time on exit.
Definition: magic.dox.h:126
const MAGIC_NO_CHECK_TAR
Don't check for tar files.
Definition: magic.dox.h:120
const MAGIC_CHECK
Print warnings to stderr.
Definition: magic.dox.h:86
string buffer(data data)
Returns magic info for a data buffer.
string file(softstring fileName)
Returns magic info for a file (path)
const MAGIC_NO_CHECK_SOFT
Don't check magic entries.
Definition: magic.dox.h:118
const MAGIC_NONE
No flags.
Definition: magic.dox.h:104
const MAGIC_NO_CHECK_TEXT
Don't check for text files.
Definition: magic.dox.h:122
const MAGIC_NO_CHECK_BUILTIN
No built-in tests only consult the magic file.
Definition: magic.dox.h:108
const MAGIC_MIME
Returns MIME type with encoding.
Definition: magic.dox.h:98
setFlags(softint flags)
Resets new flags/features based on libmagic Constants.
const MAGIC_SYMLINK
Follow symlinks.
Definition: magic.dox.h:130