OS4X plugin os4xplugin filetype recognizer

From OS4X
Jump to navigation Jump to search


Purpose

Determination of the file type of all files defined in the transferred XML for later processing in an ENGDATv2 abstract file. To do this, a database definition is used to check what type of file it is based on the file extension and the possible contents. If a file type is found, it is recorded in the file node in the XML under "<file_type>" and "<file_type_oddc77>".

Voraussetzungen

Requirements

  • File /etc/os4x.conf or configuration file referenced by environment variable $OS4X_CFGFILE. The temporary directory and the license file are obtained via the database that is configured here. The file type definition is required in this database.

Configuration

File type definition in the OS4X database table <tableprefix>filetypes.

Return codes

  • 0: everything OK