Is there a python ftp library for loading whole directories (including subdirectories)?

So, I know about ftplib, but for me it is too little, because I still need to process uploading files one at a time, and also determine if there are subdirectories, create equivalent subdirectories on the server, cd'ing to these subdirectories and then finally upload the correct files to these subdirectories. This is an annoying task that I would prefer to avoid if I can, with written tests, setting up test ftp servers, etc. Etc.

Do any of you know a library ( or mb some code scratched on the bathroom wall .. ) that takes care of this for me, or should I just accept my fate and give up my own?

thanks

+4
source share
2 answers

The ftputil Python library is a high-level interface to the ftplib module.

Seems like this might help. ftputil website

+11
source

If wget is installed on your system, you can call your script to do ftp'ing for you. It supports recursive transfers, site mirroring, and many other features.

+3
source

Source: https://habr.com/ru/post/1286318/


All Articles