artefactual / automation-tools

Tools to aid automation of Archivematica and AtoM.
GNU Affero General Public License v3.0
45 stars 33 forks source link

create_dip.py script changes file names from BagIt transfers #128

Open djjuhasz opened 2 years ago

djjuhasz commented 2 years ago

Running the create_dip.py on an AIP created from a transfer of a BagIt bag causes the initial three characters to be removed from all of the file names in the DIP objects directory. The following warning is output when this occurs:

INFO 2021-08-03 15:36:40 Moving file: objects/box4b12.bin
WARNING 2021-08-03 15:36:40 premis:originalName not starting with %transferDirectory%objects/

In the case above, the final file name in the DIP objects directory (zipped) was: 4b12.bin.

djjuhasz commented 2 years ago

Fix merged to "master" branch: https://github.com/artefactual/automation-tools/commit/e5a9f8077dfa19c87897d2f41610636d4faaf9b8