I used below code which is working on my machine to move file on ftp directory
your
request.RenameTo
is the directory where you want to move file and
Constants.FtpPathSrcFolder
is your source directory.
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://" + Constants.UserName + "@" + Constants.HostName + "/" + Constants.FtpPathSrcFolder + fileName);
request.Method = WebRequestMethods.Ftp.Rename;
request.Credentials = new NetworkCredential(Constants.UserName.Normalize(), Constants.Password.Normalize());
request.RenameTo = destFolder + fileName;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
your paths should be "
/Outgoing/Processing/
" these slashes paths.
Thanks,
Ashwin