Closed pbroman closed 5 years ago
Incomplete directories should not be copied to the import-in-progress directory. Thus, the ImporterUtils must check if the directory contains a mets file. If it doesn't, it should be ignored. In order to prevent an infinite loop, we must however keep track of checked incomplete directories. ImporterFlowControl should hold a list of incomplete directories to be filled by the ImporterUtils. Any incomplete directory is added to the list and checked only once. And the end of the import, the ImporterFlowControl should print the list to the log and the report notifier.
The mets xml file is the last file exported by kitodo.production. If the importer finds a work folder with no mets file, it should simply ignore it.