Skip to content
Snippets Groups Projects
Commit 8bfabd2c authored by Jedrzej Rybicki's avatar Jedrzej Rybicki
Browse files

mkdir p on target

parent 5ccb37b5
Branches
Tags
No related merge requests found
Pipeline #95956 passed
...@@ -63,7 +63,7 @@ def taskflow_example(): ...@@ -63,7 +63,7 @@ def taskflow_example():
with ssh_hook.get_conn() as ssh_client: with ssh_hook.get_conn() as ssh_client:
sftp_client = ssh_client.open_sftp() sftp_client = ssh_client.open_sftp()
# check dir? # check dir?
sftp_client.mkdir(target, ignore_existing=True) ssh_client.exec_command(command=f"mkdir -p {target}")
for [truename, local] in files.items(): for [truename, local] in files.items():
print( print(
f"Copying {local} --> {connection_id}:{os.path.join(target, truename)}") f"Copying {local} --> {connection_id}:{os.path.join(target, truename)}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment