Ftp.GetRawList Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)
GetRawList(String, FtpListingType)
Retrieves the raw list of files and directories as received from the server.
Declaration
public string[] GetRawList(string arguments, FtpListingType listingType)
Parameters
Type | Name | Description |
---|---|---|
String | arguments | Arguments for the list command. |
Ftp |
listingType | The listing command to use. |
Returns
Type | Description |
---|---|
String[] | The array of response lines. |
Remarks
This method supports retrieving the raw listings using either the LIST command
or MLSD command. Using Get
Please note that requesting a Ftp
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.
GetRawList()
Retrieves the raw list of files and directories in the current server directory as received from the server.
Declaration
public string[] GetRawList()
Returns
Type | Description |
---|---|
String[] | The array of response lines. |
Implements
Remarks
Represents FTP LIST command.
Because the RFC does not define the format of the file list, this method
is often useless. Using Get
GetRawList(String)
Retrieves the raw list of files and directories as received from the server.
Declaration
public string[] GetRawList(string arguments)
Parameters
Type | Name | Description |
---|---|---|
String | arguments | Arguments for the LIST command. |
Returns
Type | Description |
---|---|
String[] | The array of response lines. |
Implements
Remarks
Represents FTP LIST command.
Because the RFC does not define the format of the file list, this method
is often useless. Using Get
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.