Skip to content

Commit c3d3283

Browse files
authored
Merge pull request #58 from ecmwf/develop
0.4.9
2 parents e1de2b0 + 2837ecd commit c3d3283

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/anemoi/utils/remote/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def __init__(
199199
):
200200
if target == ".":
201201
target = os.path.basename(source)
202+
if not target:
203+
target = os.path.basename(os.path.dirname(source))
202204

203205
temporary_target = {
204206
False: None,

0 commit comments

Comments
 (0)