HomeSoftware Heritage

strengthen check for object existence in path slicing object storage

Description

strengthen check for object existence in path slicing object storage

do not rely on os.path.exists(), as it might be true for the root dir of the
storage (which we will it, e.g., when an object ID is the empty string), but
prefer os.path.isfile() instead

Details

Provenance
zackAuthored on Jan 5 2018, 6:30 PM
zackPushed on Jan 5 2018, 6:31 PM
Parents
rDOBJS7ff4c22a570b: specialize bare "except:" blocks
Branches
Unknown
Tags
Unknown