I have a program that needs to move a file from one directory to another on an FTP server. For example, the file is in:
ftp://1.1.1.1/MAIN/Dir1
The code looks correct. So either you have the wrong path, the file DOESNT exist or you need to respect case (obviously Windows is not case sensitive, but Linux, Unix are).
Did you try to open the file in a browser? Open Windows File Explorer and type the address in the path bar and see what you get.