Open sambles opened 2 months ago
Stephane: I don't know how fast it is to have a good hash on a big file but that would be my first try. second would be date of last change if we can access it
Try changing the caching logic in https://github.com/OasisLMF/OasisDataManager/blob/b0dccf5cbae3d29026a045ed54dde1f95f8d09bf/oasis_data_manager/filestore/backends/base.py#L175-L226
Lot3 - File caching issue
Issue Description
The file caching in the
OasisDataManager
package is based on the filename rather than the hash of the file data. This causes a problem with filenames likeanalysis_1_inputs.tar.gz
which is the input tar (oasis files)Example
loc_file = A
--> File storedanalysis_1_inputs.tar.gz
loc_file = A
--> File cachedanalysis_1_inputs.tar.gz
loc_file = B
loc_file = B
--> File overwritten with same nameanalysis_1_inputs.tar.gz
(This is the original
analysis_1_inputs.tar.gz
Tar file from Step 1