Rebex FTP/SSL for .NET

Ftp.BeginGetList Method (String, AsyncCallback, Object)

Returns parsed list of files and directories.

public IAsyncResult BeginGetList(
   string arguments,
   AsyncCallback callback,
   object state
);

Parameters

arguments
Arguments for the LIST command.
callback
An optional asynchronous callback to be called when the operation is complete.
state
A user-provided object that identifies this particular asynchronous operation.

Return Value

An IAsyncResult that references the asynchronous operation.

Remarks

This method will use the MLSD command if the server supports it and it is enabled (see SupportedExtensions and EnabledExtensions properties). It will use the LIST command if MLSD is not supported or disabled.

See ItemParse for information on using custom list parsers.

Caution: The meaning of the arguments argument is not defined by RFC and varies from server to server. Some servers interpret it as parameters to dir command, some as a filename, some ignore it and some report an error. Calling this method with arguments other than null is not recommended and will make your code incompatible with many FTP servers.

See Also

Ftp Class | Rebex.Net Namespace | Ftp.BeginGetList Overload List