📜  pysftp get-r - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:59.258000             🧑  作者: Mango

代码示例3
# pysftp get_r does not work on Windows. 
# It uses os.sep and os.path functions for remote SFTP paths, what is wrong, as SFTP paths always use a forward slash.
# But you can easily implement a portable replacement:

import os
from stat import S_ISDIR, S_ISREG