This project is read-only.

Mover Files from remote directory to another remote directory

Jul 8, 2015 at 6:58 PM
Edited Jul 8, 2015 at 7:07 PM
I need to upload a file to a staging directory and once it uploaded I need to mover it to a production directory. Is the a move command as part of your lib? Or is there another way to do this?

I have tried using rename:
conn.Rename(current_remote_full_path_and_filename, new_remote_full_path_and_filename)

and I get the following error:
System.Net.FtpClient.FtpCommandException was unhandled
HResult=-2146233088
Message=Internal error renaming the file
Source=System.Net.FtpClient
CompletionCode=450
StackTrace:
   at System.Net.FtpClient.FtpClient.Rename(String path, String dest)
...
Coordinator
Jul 8, 2015 at 11:58 PM
There error is from the server, you'll need to look there for reasons why the rename/move failed. (rename is the right way to do this)