正在尝试将远程文件/目录复制到本地计算机,但出现错误Traceback (most recent call last):
File "test_ssh.py", line 23, in
sftp_client.put(str(os.path.join(remote_dir,file)),os.path.join(local_dir, file))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/sftp_client.py", line 757, in put
file_size = os.stat(localpath).st_size
OSError: [Errno 2] No such file or directory:
不知道,这里怎么了。下面是片段
^{pr2}$
这里怎么了?在
{cd1>尝试下载时出错}Traceback (most recent call last):
File "test_ssh.py", line 23, in
sftp.get(os.path.join(remote_dir,file),os.path.join(local_dir, file))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/sftp_client.py", line 801, in get
with open(localpath, "wb") as fl:
IOError: [Errno 2] No such file or directory: