Hot to change directories URLConnection

Joined
Jun 10, 2009
Messages
1
Reaction score
0
Hi

I need to write 2 files to 2 different directories in my ftp server,
but the path to the destination file is already predefined in the
URL - PA/TH/TO/FI/LE/THEFILE
URL u = new URL("ftp://USER:pASS@HOST:pORT/PA/TH/TO/FI/LE/THEFILE") ;
How can i change the destination directories dynamically?

Your help will beappreciated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top