We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 075db20 commit 2c4f7dbCopy full SHA for 2c4f7db
mlflow_stagein.py
@@ -51,7 +51,7 @@ def copy_model(connection_id, **context):
51
sftp_client = ssh_hook.get_conn().open_sftp()
52
53
with open(ret, "rb") as sr:
54
- target_name = os.path.join(location, ret[len(temp_dir):])
+ target_name = os.path.join(location, os.path.basename(ret))
55
print(f"Uploading: {ret}-->{target_name}")
56
if file_exist(sftp=sftp_client, name=target_name):
57
print(target_name," exists. Overwritting.")
0 commit comments