From a3ae401eb7444e6bb6420ffc521b91573cc246ec Mon Sep 17 00:00:00 2001 From: SergioLangaritaBenitez Date: Wed, 25 Jun 2025 13:36:44 +0200 Subject: [PATCH] rucio support several files --- faassupervisor/storage/providers/rucio.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/faassupervisor/storage/providers/rucio.py b/faassupervisor/storage/providers/rucio.py index 0c64b29..351c13b 100644 --- a/faassupervisor/storage/providers/rucio.py +++ b/faassupervisor/storage/providers/rucio.py @@ -131,9 +131,10 @@ def download_file(self, parsed_event, input_dir_path): download = downloadc.download_dids(dids) get_logger().debug('Downloaded file info: %s', download) try: - for file in download[0]["dest_file_paths"]: - basename = os.path.basename(file) - FileUtils.cp_file(file, SysUtils.join_paths(input_dir_path, + for file in download: + complete_name = file["dest_file_paths"][0] + basename = os.path.basename(complete_name) + FileUtils.cp_file(complete_name, SysUtils.join_paths(input_dir_path, basename)) except Exception as e: print("An exception occurred" + e)