Unverified Commit 9384e5f6 authored by calpt's avatar calpt Committed by GitHub
Browse files

Fix force_download of files on Windows (#3697)

parent bc65afc4
......@@ -487,7 +487,7 @@ def get_from_cache(
http_get(url, temp_file, proxies=proxies, resume_size=resume_size, user_agent=user_agent)
logger.info("storing %s in cache at %s", url, cache_path)
os.rename(temp_file.name, cache_path)
os.replace(temp_file.name, cache_path)
logger.info("creating metadata file for %s", cache_path)
meta = {"url": url, "etag": etag}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment