commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tan Kah Siong <jax7...@yahoo.com.sg>
Subject Common net - ftp file renaming
Date Sun, 03 Jul 2005 01:43:55 GMT
Hi, 

I am trying to rename a file while i am logged into a
ftp server.

I did something like this but i noted that the
filename was not changed on the server.

FTPFile[] files = ftpclient.listFiles(sourcefile);
files[0].setName(destfile);

No exceptions were thrown.
I had tried to log in using the same credentials on a
command prompt ftp program and i can rename the file
with no problems.

Please advice.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message