Tools

LIST FTP command

The LIST command is issued to transfer information about files on the server through a previously established data connection. When no argument is provided with the LIST command, the server will send information on the files in the current working directory. If the argument specifies a directory or other group of files, the server should transfer a list of files in the specified directory. If the argument specifies a file, then the server should send current information about the file.

First published date

11/29/2018 10:52 PM

Last published date

4/24/2019 2:22 PM

Overview

This article describes the use of the List (LIST) FTP command.

Product section

Serv-U Managed File Transfer & Serv-U FTP Server

Resolution

The LIST command is issued to transfer information about files on the server through a previously established data connection. When no argument is provided with the LIST command, the server will send information on the files in the current working directory. If the argument specifies a directory or other group of files, the server should transfer a list of files in the specified directory. If the argument specifies a file, then the server should send current information about the file.

-rw-rw-rw- 1 user group 0 Feb 9 09:38 \ subdirectory\ file.txt

instead of:

-rw-rw-rw- 1 user group 0 Feb 9 09:38\ file.txt

 

Advanced options 

Serv-U supports the option to return full paths in the LIST command in the command response. Enabling this advanced option allows Serv-U to return the full path when LIST is issued for a specific file. The format is:
 


Common responses 


See also:

NLST FTP command