From 56a1d562820fe1b7c8c465da41c3aca8461312d6 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 20 Nov 2024 11:18:25 -0500 Subject: [PATCH] avoid file clobbering in okify --- jwst/scripts/okify_regtests.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jwst/scripts/okify_regtests.py b/jwst/scripts/okify_regtests.py index 4a2494bb1d..4784ad1662 100755 --- a/jwst/scripts/okify_regtests.py +++ b/jwst/scripts/okify_regtests.py @@ -13,7 +13,6 @@ import tempfile from argparse import ArgumentParser from contextlib import contextmanager -from glob import glob from pathlib import Path import asdf @@ -110,11 +109,10 @@ def artifactory_get_breadcrumbs(build_number, suffix): args = list( ['jfrog', 'rt', 'dl'] + [f"{ARTIFACTORY_REPO}/*_GITHUB_CI_*-{build_number}/*{suffix}"] - + ['--flat'] ) subprocess.run(args, check=True, capture_output=True) - return sorted(glob(f'*{suffix}')) + return sorted([str(p) for p in Path().rglob(f'*{suffix}')]) def artifactory_get_build_artifacts(build_number):