Represents an item in a directory listing retrieved from FTP server.
For a list of all members of this type, see FtpFile Members.
System.Object
Jscape.Ftp.FtpFile
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
[C#]
// create new Ftp instance
Ftp ftp = new Ftp("ftp.myserver.com", "anonymous", "user@myserver.com");
// connect to FTP server
ftp.Connect();
// get dir listing
IEnumerator e = ftp.GetDirListing();
while (e.MoveNext()) {
// get FtpFile instance
FtpFile file = (FtpFile) e.Current;
}
[Visual Basic]
' create new Ftp instance
Dim myFtp As Ftp = Nothing
myFtp = New Ftp("ftp.myserver.com", "anonymous", "user@myserver.com")
' connect to FTP server
myFtp.Connect()
' get dir listing
Dim e As IEnumerator = Nothing
While e.MoveNext
' get FtpFile instance
Dim file As FtpFile = Nothing
file = e.Current
End While
Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll)
FtpFile Members | Jscape.Ftp Namespace