How Deep Scan works and how to disable it
masterDeep scan is a content-aware analysis system enabled by default in version 2.0+. It performs analysis beyond simple magic number matching to improve accuracy for complex formats like Office documents, CSV, MP3, Python source, and JSON.
Included Scanners:
- ZIP: Distinguishes Office (xlsx/docx/pptx) and OpenDocument formats.
- MPEG Audio: Validates MP3/MPEG frames.
- Text: Detects encodings, line endings, CSV delimiters, and email (.eml).
- Python: Validates source via
ast.parse(). - PDF/JSON/HDF5: Format-specific validation.
- Scientific/Bioinformatics: Recognizes formats like VCF, SAM, GFF, etc.
To disable deep scan, set the PUREMAGIC_DEEPSCAN environment variable to 0.
$ export PUREMAGIC_DEEPSCAN=0