procedure ListDir(List: TStrings = nil; const Path: string = '');



Call the ListDir method to retrieve a list of files or directories only in the directory on the FTP server without any describing information.

Path is used as an argument when sending the FTP 'NLST' command. If Path is an empty string, the current directory is used.

If List is not nil, the resulting list will be assigned to this object in a text format.

ListDir fills the DirectoryListing list of objects that contain names of files and directories returned by this request.


Getting a list of files can occur in an active and a passive modes (see UsePassive).

The EncryptDataChannel property determines whether the connection will be protected using a TLS/SSL protocol.

The UseCompression property determines whether data compression will be used when transferring data.

The response code received during execution of this command request is contained in the ReplyCode property.


See Also









SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support