commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Devès ...@infologic.fr>
Subject Re: FTPClient
Date Thu, 04 Sep 2008 07:58:34 GMT
I am doing thinks like that :

ftpClient.rename("dir1/someFile", "dir2/someFile")
or
ftpClient.rename("dir1/someFile1", "dir2/someFile2")

and it works with no problem : the file is moved from one directory to 
the other.

Nicolas

bhamilton a écrit :
> The FTPClient has a rename method with 2 string parameters 
> representing the current file name and the requested new file name, 
> 'from' and 'to'.  The 'from' file, i.e. 'someFile', is in the current 
> working directory.  Assume that there is a subdirectory, i.e. 'sub'.  
> Using the rename method, i.e. ftpClient.rename("someFile", 
> "sub/someFile"), would the file be moved to the subdirectory?  Or am I 
> going to have to download the file then upload the same file to the 
> subdirectory?
>
> Thanks!
> Brenda
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>


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


Mime
View raw message