This command causes a directory listing to be sent from the server to the client. The pathname should specify a directory or other system-specific file group descriptor. An empty path implies the current working directory. If the path is non-existent, send nothing. If the path is to a file, send only the file name.

ParameterspathThe path for which a directory listing should be returned. (type: str)
Returnsa Deferred which will be fired when the listing request is finished. (type: Deferred)
Function cbList Send, line by line, each matching file in the directory listing, and then close the connection.
Function listErr RFC 959 specifies that an NLST request may only return directory listings. Thus, send nothing and just close the connection.
def cbList(results, glob): (source)

Send, line by line, each matching file in the directory listing, and then close the connection.

ParametersresultsThe names of the files in the directory. (type: A list of tuple. The first element of each tuple is a str and the second element is a list.)
globA shell-style glob through which to filter results (see http://docs.python.org/2/library/fnmatch.html), or None for no filtering. (type: str or None)
ReturnsA tuple containing the status code for a successful transfer. (type: tuple)
def listErr(results): (source)

RFC 959 specifies that an NLST request may only return directory listings. Thus, send nothing and just close the connection.

ParametersresultsThe Failure wrapping a FileNotFoundError that occurred while trying to list the contents of a nonexistent directory. (type: Failure)
ReturnsA tuple containing the status code for a successful transfer. (type: tuple)
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.