IPWorks EDI 2020 Python Edition

Questions / Feedback?

list_directory Method

List the current directory specified by RemotePath on an FTP server.

Syntax

def list_directory() -> None: ...

Remarks

This method is used to list the directory (or file mask) specified in remote_file. remote_file is either an absolute path on the server, or a path relative to remote_path. The file listing is received through the on_dir_list event.

Similar to list_directory_long, except only file names are returned.

Note that since remote_file acts as a file mask, to retrieve a complete directory listing remote_file should be set to empty string or a mask like "*". If there is no FTP session in place, one is automatically created by first calling the logon method.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Python Edition - Version 20.0 [Build 8203]