Expand description
Centralized registry of magic header signatures across format types.
Statics§
- COMPILED_
CTB_ MAGIC_ RULES - Global compiled hierarchical magic rules defined specifically by ctoolbox (
ctoolbox.magic). - COMPILED_
FILE_ MAGIC_ RULES - Global compiled hierarchical magic rules from upstream
file/ Magdir. - COMPILED_
MAGIC_ DATABASE - Global compiled hierarchical magic database loaded from in-repo custom definitions (
ctoolbox.magic) and upstream Magdir rule files. - COMPILED_
MAGIC_ RULES - Legacy alias providing all rules combined.
- COMPILED_
MAGIC_ TEMPLATES - Global compiled named template subroutines.
Functions§
- get_
ctb_ magic_ content - Returns the content of
ctoolbox.magicfrom the asset bundle or repository assets. - get_
magdir_ files - Returns all bundled Magdir rule files as (
relative_path,content_bytes) pairs.