DHI-GRAS/creodias-finder

Leave tempdir/workdir logic to user

j08lue opened this issue · 0 comments

A very simple alternative to juggling with workdir or temporary files/directories is to first download to the same name as the target file but with an additional .incomplete suffix, and move to the real name after successful download. This makes the code more simple and you can be sure to always download to the same drive that the target file is on, which makes the final shutil.move very cheap.