agatha.construct.ftp_util module¶
-
agatha.construct.ftp_util.ftp_connect(address, workdir)¶ Connects to a remote FTP server at a specific directory
- Return type
FTP
-
agatha.construct.ftp_util.ftp_download(conn, remote_name, directory)¶ - Return type
Path
-
agatha.construct.ftp_util.ftp_download_if_missing(conn, remote_name, directory)¶ If the file already exists, skip it.
- Return type
Path
-
agatha.construct.ftp_util.ftp_list_files(conn, pattern='.*')¶ - Return type
List[str]
-
agatha.construct.ftp_util.ftp_retreive_all(conn, directory, pattern='.*', show_progress=False)¶ For each file matching the given pattern, download if not in directory.
- Return type
List[Path]