Skip to content

Commit dd4b52c

Browse files
committed
touch for writing
1 parent 0774b1a commit dd4b52c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlflow_stagein.py

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def copy_model(connection_id, **context):
5555
if file_exist(sftp=sftp_client, name=target_name):
5656
print(target_name," exists. Overwritting.")
5757

58+
sftp_client.exec_command(command=f"touch {target_name}")
5859
with sftp_client.open(target_name, "wb") as tr:
5960
tr.set_pipelined(pipelined=True)
6061
copy_streams(inp=sr, outp=tr)

0 commit comments

Comments
 (0)