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

finding ftp client home directory

 
Kevin Wong
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I am wondering if there is a Java function/api I can use to find the current home directory of a ftp client.
I am trying to find a way to find the absolute directory file path of some some files, that are in the ftp client directory.

I am trying to copy these files into a network shared directory using java.

I have been searching the ftp commands and there does not seem to be any relevant ftp command.

Regards
Kevin Wong
 
Winston Gutkowski
Bartender
Pie
Posts: 9477
50
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kevin Wong wrote:I am wondering if there is a Java function/api I can use to find the current home directory of a ftp client.
I am trying to find a way to find the absolute directory file path of some some files, that are in the ftp client directory.

I am trying to copy these files into a network shared directory using java.

I have been searching the ftp commands and there does not seem to be any relevant ftp command.

There are certainly FTP clients for Java, but unless the target specifically allows it you won't be able to get any information about its directories (it defeats the whole purpose of the protocol).
If you want to copy files to the FTP server's home directory, just use the product; if you want to find information about the target's filesystems, you'll have to find another way (and make sure it's legal ).

Winston
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic