File Magic Tools
Magic wand that points at your files.
We have wrapped the file magic tools under a class called MagicHandler that is found under the Magico.Files namespace. It wraps the libmagic library with the magic.mgc magic file that is embedded to the library to allow systems that don't have file and libmagic installed to work, thus achieving portability.
Some of the tools
You can use some of the tools by expanding one of the below expandables:
Obtaining the libmagic version
You can check the libmagic version identifier using the MagicVersionId property.
Obtaining the magic file paths
You can get the magic file paths using the GetMagicPaths() function, though this is usually not necessary.
Last updated