Gets the remote directory listing from the FTP server.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public virtual IEnumerator GetDirListing()
Visual Basic
Public Overridable Function GetDirListing As IEnumerator
Visual C++
public:
virtual IEnumerator^ GetDirListing()

Return Value

An Enumeration of FtpFile objects.

Remarks

Parsers are included with this release to handle UNIX, NT, and VMS directory style listings. If you are connecting to a FTP server that does not use any of these listing formats then you can optionally develop your own parser by extending the FtpFileParser class, or use some of the alternative methods for obtaining a directory listing such as the GetNameListing or GetDirListingAsString methods.

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an I/O or FTP error occurs.

See Also