From 4e945355edbc945976c7244fcd44e6489d0b3bad Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Mon, 18 Nov 2024 15:11:45 +0000 Subject: [PATCH] fix copy to "." from s3 --- src/anemoi/utils/remote/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/anemoi/utils/remote/__init__.py b/src/anemoi/utils/remote/__init__.py index 722a685..a27cdea 100644 --- a/src/anemoi/utils/remote/__init__.py +++ b/src/anemoi/utils/remote/__init__.py @@ -199,6 +199,8 @@ def __init__( ): if target == ".": target = os.path.basename(source) + if not target: + target = os.path.basename(os.path.dirname(source)) temporary_target = { False: None,