list_dir Method
Lists the contents of a remote directory.
Syntax
def list_dir(include_files: bool, include_directories: bool) -> str: ...
Remarks
Use the IncludeFiles and IncludeDirectories parameters to tune up the output. The output of IncludeFiles also includes symbolic links.
This method returns a human-readable string containing the requested list. It also fires on_list_entry for each entry in the list, propagating its details in current_list_entry.
This method uses some heuristics internally by choosing the most appropriate listing method among MLSD, NLST, and LIST.