flexget.components.ftp.ftp_download module#
- class flexget.components.ftp.ftp_download.OutputFtp[source]#
Bases:
objectFtp Download plugin.
input-url: ftp://<user>:<password>@<host>:<port>/<path to file> Example: ftp://anonymous:anon@my-ftp-server.com:21/torrent-files-dir
- config:
- ftp_download:
use-ssl: <True/False> ftp_tmp_path: <path> delete_origin: <True/False> download_empty_dirs: <True/False>
- Todo:
Resume downloads
create banlists files
validate connection parameters
- check_connection(ftp, config, ftp_url, current_path)[source]#
- Parameters:
current_path (PurePosixPath)
- ftp_connect(config, ftp_url, current_path)[source]#
- Parameters:
current_path (PurePosixPath)
- ftp_down(ftp, file_name, tmp_path, config, ftp_url, current_path)[source]#
- Parameters:
tmp_path (Path)
current_path (PurePosixPath)
- ftp_walk(ftp, tmp_path, config, ftp_url, current_path)[source]#
- Parameters:
tmp_path (Path)
current_path (PurePosixPath)
- schema = {'additionalProperties': False, 'properties': {'delete_origin': {'default': False, 'type': 'boolean'}, 'download_empty_dirs': {'default': False, 'type': 'boolean'}, 'ftp_tmp_path': {'format': 'path', 'type': 'string'}, 'use-ssl': {'default': False, 'type': 'boolean'}}, 'type': 'object'}#