DataONEorg / hashstore

HashStore, a hash-based object store for DataONE data packages
Apache License 2.0
1 stars 1 forks source link

When deleting objects or metadata, do not delete the parent directories #72

Closed doulikecookiedough closed 6 months ago

doulikecookiedough commented 9 months ago

Currently, deleting objects and metadata are not synchronized - so checking that a directory is empty before deleting may not always be correct. Since it is also difficult to lock the file system to coordinate deletion of empty directories, it is better not to when calling delete_object or delete_metadata.

Refactor the affected methods and code to only delete the object/metadata, and not the parent directories.

doulikecookiedough commented 6 months ago

This will be and has been addressed in Issue 71: Update client module for name and revised storeObject process