Skip to content

Ftpclient

flowtask.interfaces.FTPClient

FTP Client.

Overview

This class provides functionalities for asynchronous operations with an FTP server, including establishing connections, checking directory existence, changing working directories, and downloading files.

FTPClient

FTPClient(credentials=None, host=None, port=None, **kwargs)

Bases: ClientInterface

close async

close()

Close Method.

download_file async

download_file(file, destination, rewrite=False)

download_file

Download a File from FTP based on Path. Args: file (str): file to be downloaded destination (str): path to destination rewrite (bool): file if exists, will be overwrite TODO: Support for write_into and Renaming Files.

init_connection async

init_connection(host, port, credentials, ssl=None)

init an FTP connection