Namespace:
Rebex.Net
Assembly:
Rebex.Ftp (in Rebex.Ftp.dll)
Syntax
Visual Basic |
---|
Public Function GetList ( _ arguments As String _ ) As FtpItemCollection |
C# |
---|
public FtpItemCollection GetList( string arguments ) |
Parameters
- arguments
- Type: System..::..String
Arguments for the LIST or MLSD command.
Return Value
An instance of FtpItemCollection containing the file list.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.