From ffa38177802e387f1b12ca6b4548f4d146e6c13e Mon Sep 17 00:00:00 2001 From: Mike Lin Date: Tue, 17 Oct 2023 14:13:44 -1000 Subject: [PATCH] fix download caching when [file_io] root is set --- WDL/runtime/download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WDL/runtime/download.py b/WDL/runtime/download.py index 26bcf28c..9ac16235 100644 --- a/WDL/runtime/download.py +++ b/WDL/runtime/download.py @@ -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).