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,