PDA

View Full Version : rename or move a remote file


shashi2309
01-15-2009, 04:57 AM
Hi,

I want to know that whether we can move or rename a remote file using JSCAPE.

Thanks & Regards
Shashi

shashi2309
01-15-2009, 05:29 AM
I know we have
public void upload(java.lang.String extension,java.io.File localFile)

but this will keep the remote filename same as the local filename once the transfer is complete. What I want is a different filename after the transfer is done. For example I want to transfer A.txt.

During the transfer the remote file name will be A.txt.tmp
After the transfer it should be B.txt.

I know it's quite specific to my requirement but do we have anything like this or some API through which I can move or rename a remote file.

vglass
01-16-2009, 01:19 PM
See the method Ftp.upload(java.io.File localFile, java.lang.String remoteFile)

mjawwad
11-14-2009, 09:34 PM
What are "PMs"?