[fix] win path push error

This commit is contained in:
dianjixz
2024-04-18 14:22:23 +08:00
committed by GitHub
parent faf2f70fb2
commit 51177646be
+2 -2
View File
@@ -2,7 +2,7 @@
import sys
import os
from pathlib import Path
from pathlib import Path, PosixPath
import paramiko
from scp import SCPClient
import sys
@@ -49,7 +49,7 @@ if __name__ == '__main__':
file_group = []
for root, dirs, files in os.walk(local_file_path):
for file in files:
file_group.append([str(Path(root)/file), str(Path(remote_file_path)/file)])
file_group.append([str(Path(root)/file), str(PosixPath(remote_file_path)/file)])
if file_group:
ssh_push_file(file_group, remote_host, remote_port, username, password)