voxel51 / eta

ETA: Extensible Toolkit for Analytics
https://voxel51.com
Apache License 2.0
29 stars 13 forks source link

Allow directory to exist when running ensure_dir() #527

Closed brimoor closed 3 years ago

brimoor commented 3 years ago

Tweaks the implementation of ensure_dir() so that it is always okay if a directory already exists. Previously I had errors in multiprocess workflows where one worker managed to create the directory between the execution of the if and os.makedirs() statements of another worker.