aspose file tools
The moose likes Java in General and the fly likes JvftpAPI (java ftp client) question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JvftpAPI (java ftp client) question" Watch "JvftpAPI (java ftp client) question" New topic

JvftpAPI (java ftp client) question

Sunil swain

Joined: Jul 14, 2009
Posts: 10
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

Joined: Mar 22, 2005
Posts: 42954
Welcome to JavaRanch.

Is the problem the recursive retrieving of file and directory names, or the filling of some appropriate data structure?
Sunil swain

Joined: Jul 14, 2009
Posts: 10
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

Joined: Oct 27, 2005
Posts: 19905

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.

How To Ask Questions How To Answer Questions
jQuery in Action, 2nd edition
subject: JvftpAPI (java ftp client) question