You've already forked M5Stack_Linux_Libs
mirror of
https://github.com/m5stack/M5Stack_Linux_Libs.git
synced 2026-05-20 11:01:38 -07:00
[fix] win path push error
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user