Skip to content

Commit

Permalink
fix copy to "." from s3 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb authored Nov 18, 2024
1 parent 29f7448 commit 2837ecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/anemoi/utils/remote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2837ecd

Please sign in to comment.