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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • FTPClient bhamilton
    • Re: FTPClient Nicolas Devès

Reply via email to