katana.units.raw.exiftool
— Exiftool¶
Extract metadata with exiftool
This unit will extract metadata file using the exiftool
command-line utility. The syntax runs as:
exiftool <target_path>
The unit inherits from katana.unit.FileUnit
to ensure the target
is a file.
-
class
katana.units.raw.exiftool.
Unit
(manager: katana.manager.Manager, target: katana.target.Target, keywords=None) Bases:
katana.unit.FileUnit
-
DEPENDENCIES
= ['exiftool'] This unit needs the
exiftool
command-line tool to run.
-
GROUPS
= ['raw', 'file', 'exiftool'] These are “tags” for a unit. Considering it is a Raw unit, “raw” is included, as well as the tag “file”, and the name of the unit “exiftool”.
-
PRIORITY
= 40 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a moderate-to-high priority
-
evaluate
(case) Evaluate the target. Run
exiftool
on the target and recurse on any newfound information.Parameters: case – A case returned by enumerate
. For this unit, theenumerate
function is not used.Returns: None. This function should not return any data.
-