'DeclarationPublic Overloads Function GetFolderContents() As FtpItemInfoList
'UsageDim instance As FtpClient Dim value As FtpItemInfoList value = instance.GetFolderContents()
public FtpItemInfoList GetFolderContents()
'DeclarationPublic Overloads Function GetFolderContents() As FtpItemInfoList
'UsageDim instance As FtpClient Dim value As FtpItemInfoList value = instance.GetFolderContents()
public FtpItemInfoList GetFolderContents()
| Exception | Description |
|---|---|
| FtpInvalidStateException | Cannot perform the requested operation because the FTP client is in an invalid state. |
| FtpReplyException | An error reply was returned by the FTP server. |
| FtpIOException | An I/O error has occurred. |
| FtpInternalException | A fatal FTP-specific error has occurred.. |
If you want to retrieve the contents of another folder, you could use the ChangeCurrentFolder and/or ChangeToParentFolder methods to change the current working folder.
The current working folder can be retrieved via the GetCurrentFolder method.
The listing lines can be manually parsed or modified via the ParsingListingLine event.
The GetFolderContents method will send the LIST and PASV or PORT and TYPE commands to the FTP server.
This method is the equivalent of the GetFolderContents and ListFolderContents methods of the ActiveX version of the Xceed FTP Library.
FtpClient Class
FtpClient Members
Overload List
Xceed.Ftp.FtpClient.GetRawFolderContents(Xceed.Ftp.Engine.FtpCommandChannel,Xceed.Ftp.Engine.ListFtpCommand)
ParsingListingLine Event