Skip to content

Commit 0a1c5b1

Browse files
authored
Remove mkpath since its not supported everywhere (#96)
Signed-off-by: Hemil Desai <[email protected]>
1 parent 9890827 commit 0a1c5b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nemo_run/core/tunnel/rsync.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def rsync(
3030
exclude: str | Iterable[str] = (),
3131
delete: bool = False,
3232
strict_host_keys: bool = True,
33-
rsync_opts: str = "--mkpath",
33+
rsync_opts: str = "",
3434
ssh_opts: str = "",
3535
hide_output: bool = True,
3636
):
@@ -87,6 +87,7 @@ def rsync(
8787
else:
8888
cmd = "rsync {} {} {}@{}:{}"
8989
cmd = cmd.format(options, source, user, host, target)
90+
c.run(f"mkdir -p {target}", hide=hide_output)
9091
result = c.local(cmd, hide=hide_output)
9192
if result:
9293
logger.info(f"Successfully ran `{result.command}`")

0 commit comments

Comments
 (0)