• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JvftpAPI (java ftp client) question

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone let me know how to pupulate directory tree structure during FTP.
I m using JvftpAPI.Is there any API available to see the sub directory and sub files?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Is the problem the recursive retrieving of file and directory names, or the filling of some appropriate data structure?
 
Sunil swain
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf ,
This is the problem of displaying recursive retrieving of file and directory names.
I need to see the directory structure of FTP client and Server. After seeing the tree structure
i can select one/more file and do upload/down load.That why i need to see the tree structure
at both the ends.Is there any java ftp client is available ?
Thanks for your response.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://jvftp.sourceforge.net/docs/api/

In short, FtpFile has methods listCoFiles(), listCoFiles(CoFileNameFilter) and listCoRoots() which all return a CoFile[]. It returns CoFile[] because of the CoFile interface. In practice, all elements are FtpFile instances.
 
reply
    Bookmark Topic Watch Topic
  • New Topic