- class ESSArch_Core.fixity.format.FormatIdentifier(allow_unknown_file_types=False, allow_encrypted_files=False)
Identifies the format of the file using the fido library
filename – The filename to identify
A tuple with the format name, version and registry key
FormatIdentifier is used to identify the format of files during validation, XML generation and viewing files in the browser.
The file at path_mimetypes_definitionfile is used to identify the MIME
type of the file. If the file extension is missing from the MIME types file it
will be set to
allow_unknown_file_types is set to
exception will be raised.
The fido library is used to get the format name, version and registry key of the file.