Fix uploading
This commit is contained in:
@@ -27,10 +27,9 @@ def upload():
|
||||
|
||||
# Download each file
|
||||
sftp.put(local_filepath, remote_filepath)
|
||||
print(f"Uploaded: {local_filepath} to {remote_filepath}")
|
||||
print(f"- Uploaded: {local_filepath} to {remote_filepath}")
|
||||
|
||||
# Close the SFTP session and SSH connection
|
||||
sftp.close()
|
||||
ssh_client.close()
|
||||
print("All files downloaded and connections closed.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user