$ pip3 install ftp_downloaderfrom ftp_downloader import FTPDownloader
ftp_client=FTPDownloader(FTP_HOST, FTP_PORT, FTP_USER, FTP_PASSWORD)Download all files in the selected ftp directory (And re-download only modified files for reused).
ftp_client.download_dir(download_from_dir='directory')- upload_to_dir (str, Root directory for uploaded files)
- exclude_ext (list, Exclude extensions from download)
- with_root_path (bool, True: download to: /upload_to_dir/download_dir | False: download to : /upload_to_dir)
- SILENCE (Bool, Disable/Enable all prints output)
$ pip3 install ftp_downloaderfrom ftp_downloader import FTPDownloader
ftp_client=FTPDownloader(FTP_HOST, FTP_PORT, FTP_USER, FTP_PASSWORD)Загрузить все файлы из выбранной FTP директории (При повторном вызове загрузить заново только измененные файлы)
ftp_client.download_dir(download_from_dir='directory')- upload_to_dir (str, Корневая директория для загружаемых файлов)
- exclude_ext (list, Исключить расширения файлов из загрузки)
- with_root_path (bool, True: download to: /upload_to_dir/download_dir | False: download to : /upload_to_dir)
- SILENCE (Bool, Включить/Выключить вывод процессов)