Ftp.GetList Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9119)
GetList(String)
Returns parsed list of files and directories.
Declaration
public FtpItemCollection GetList(string arguments)
Parameters
Type | Name | Description |
---|---|---|
String | arguments | Arguments for the LIST or MLSD command. |
Returns
Type | Description |
---|---|
FtpItemCollection | 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.
GetList()
Returns parsed list of files and directories in the current server directory.
Declaration
public FtpItemCollection GetList()
Returns
Type | Description |
---|---|
FtpItemCollection | 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.