• Post Reply Bookmark Topic Watch Topic
  • New Topic

FTP  RSS feed

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

Currently i am trying to connect to a site using ftp using the below method to upload a file



Now my question is how from java can i create or delete a directory as well as create or delete a file using ftp?

Is there also a way i can just connect to a ftp site say ftp.foo.com without specifying the file name so that i can connect to the ftp site first, create a file first then go to that file?

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West
 
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the commons net API to accomplish what you asked for. Here it is

http://jakarta.apache.org/commons/net/

Here is the FAQ:

http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!