Moving Files to Folder on Remove Server After FTP
Posted: Thu Nov 07, 2013 2:19 pm
I have a project that gets customer POs via ftp off a remote server. After the current set of files has been gotten, they need to be moved to an archive folder on the remote server.
The 'get' works fine, but when I then try to move the files, I get permission denied errors. Below is what the ftp part of my project looks like:
When I look at the job log, it appears that the project is trying to delete the files, even though there isn't a delete instruction in the project.
"
I'm sure the problem is some stupid little thing that I've overlooked. But I can't figure it out.
Any suggestions would be appreciated.
Thanks!
The 'get' works fine, but when I then try to move the files, I get permission denied errors. Below is what the ftp part of my project looks like:
Code: Select all
I've confirmed that I have permission to do this on the remove system, so that shouldn't be the problem. <ftp resourceId="Spring Systems - live" version="1.0" logLevel="debug" disabled="false">
<get label="Get Orders" destinationDir="${system.job.workspace}" type="binary" destinationFilesVariable="Orders" numFilesDownloadedVariable="Count">
<fileset dir="knitrite-reports/PO_data/" />
</get>
<move destinationDir="knitrite-reports/PO_data/archive/">
<fileset dir="knitrite-reports/PO_data/" />
</move>
</ftp>
When I look at the job log, it appears that the project is trying to delete the files, even though there isn't a delete instruction in the project.
"
I'm sure the problem is some stupid little thing that I've overlooked. But I can't figure it out.
Any suggestions would be appreciated.
Thanks!