File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JvftpAPI (java ftp client) question

 
Sunil swain
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic