Open mjordan opened 6 years ago
The checksum should be compared for new bags as well. Logic is:
bag_location_exact
and bag_location
fields, and its document_timestamp
.For moved or renamed bags, the logic is:
bag_location_exact
and bag_location
fields, and its document_timestamp
. Do not update its ID.For modified bags (bags that overwrite existing bags), the logic is:
bag_location_exact
and bag_location
fields (if necessary), its bag_hash
value, and its document_timestamp
. Do not update its ID.
The watcher script should use the bag's checksum to confirm that it is dealing with the same bag file in its
on_moved()
method.