From 2837ecd1da4aa8a6500c790ba139429791356e4a Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Mon, 18 Nov 2024 16:15:09 +0100 Subject: [PATCH] fix copy to "." from s3 (#57) --- 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,