Retrieving a local directory listing |
To get a local directory listing of your current local directory use the LocalDirListing method. This returns an enumeration of files including the complete local path.
Example
[C#]
IEnumerator lde = myFtp.LocalDirListing();
while (lde.MoveNext()) {
FileInfo fi = (FileInfo)lde.Current;
Console.WriteLine(fi.Name);
}
[Visual Basic]
Dim lde As IEnumerator = myFtp.LocalDirListing()
While ldee.MoveNext()
Dim fi As FileInfo = lde.Current
System.Console.WriteLine(fi.Name)
End While
See also