Retrieving a local directory listing |
To get a local directory listing of your current local directory use the Ftps#getLocalDirListing method. This returns a java.util.Enumeration of java.io.File objects.
Example
// get local directory listing Enumeration f = ftps.getLocalDirListing(); while(f.hasMoreElements()) { File file = (File)f.nextElement(); System.out.println(file.getName()); }
See also
|