Skip to content

Commit

Permalink
fix download caching when [file_io] root is set
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Oct 18, 2023
1 parent 970e9d2 commit ffa3817
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WDL/runtime/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def run_cached(
if cache_path and not cache_path_preexists:
# run the download in a holding area under the cache directory, so that it can later be
# moved atomically into its final cache location
run_dir = os.path.join(cfg["download_cache"]["dir"], "ops")
run_dir = os.path.join(
cfg["file_io"]["root"], os.path.join(cfg["download_cache"]["dir"], "ops")
)
filename = run(cfg, logger, uri, directory=directory, run_dir=run_dir, **kwargs)
if cache_path_preexists:
# a cache entry had already existed, but we didn't use it (--no-cache).
Expand Down

0 comments on commit ffa3817

Please sign in to comment.