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
I am working on the identical type of project, try building a web service that can move the files around and runs on the server where your files are. Build it with a parameter to pass in the file name. When writing the file to begin with you might want to append a value to the file name, say the PK of the data that correlates to the file etc.