Tools

MLSD FTP command

The MLSD command is a replacement for the LIST command that is meant to standardize the format for directory listings to make them easier for an automated process (an FTP client) to interpret. Like the LIST command, directory information is sent to the client over a previously established data connection. The MLSD command may be accompanied with an optional parameter defining the directory that listings are requested for. Unlike the LIST command, if a filename is provided, an error is returned.

First published date

10/26/2018 7:40 PM

Last published date

10/26/2018 7:40 PM

Overview

This article describes the use of the Machine List Directory (MLSD) FTP command.

Product section

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

Resolution

The MLSD command is a replacement for the LIST command that is meant to standardize the format for directory listings to make them easier for an automated process (an FTP client) to interpret. Like the LIST command, directory information is sent to the client over a previously established data connection. The MLSD command may be accompanied with an optional parameter defining the directory that listings are requested for. Unlike the LIST command, if a filename is provided, an error is returned. For retrieving information on a single file, the MLST command can be used. If no parameter is present, then the user's current directory is assumed.

Common responses 

See also