|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
Database validation methods. More...

Functions | |
| bool | Recognition::Magic::MagicPrivate::Check (const std::filesystem::path &database_file) const noexcept |
| Check if a magic database file is valid. | |
Database validation methods.
Methods for checking magic database file validity before use.
|
inlinenodiscardnoexcept |
Check if a magic database file is valid.
Validates the entries in a magic database file by calling magic_check() from libmagic. This verifies the database can be parsed correctly.
| [in] | database_file | Path to the database file to validate. |