Downloading a directory tree with ftplib

前端 未结 6 1681
名媛妹妹
名媛妹妹 2020-11-27 06:25

This will not download the contents of sub-directories; how can I do so?

import ftplib
import configparser
import os

directories = []

def add_directory(lin         


        
6条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 07:10

    this is an alternative. you can try using ftputil package. You can then use it to walk the remote directories and get your files

提交回复
热议问题