Retrieving a local directory listing

Top  Previous  Next

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

 

Setting your local directory





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC