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
JavaRanch » Java Forums » Java » Java in General
Bookmark "JvftpAPI (java ftp client) question" Watch "JvftpAPI (java ftp client) question" New topic
Author

JvftpAPI (java ftp client) question

Sunil swain
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
Welcome to JavaRanch.

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


Ping & DNS - my free Android networking tools app
Sunil swain
Greenhorn

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
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
jQuery in Action, 2nd edition
 
subject: JvftpAPI (java ftp client) question