Copy link to clipboard
Copied
I'm using cfftp to download files which I parse, then I need to delete the file from the server. (coldfusion 11 - development)
I can list, and download the files fine, but am butting my head into a problem that I can't seem to resolve.
USING THE SAME PATH AND FILE NAME that allowed me to 'get' the file - When I try to remove the file - I get this error.
Error: 550 file: No such file or directory .
(again - the path and file name I provide are identical to the path/filename -
if this is a permission problem, I can delete files thru Filezilla, using the same credentials - with no problem)
Here is the call to remove -
<cfftp action="remove"
connection="myConnection1"
passive="true"
timeout="360"
remotefile="#myPath##fileName#"
item="file" >
ANSWER (if not 'answer' - at least code that 'works')
<cfftp action="remove"
connection="myConnection1"
item="#myPath##fileName#" >
This is not what the docs say- or how other examples on line convey it - but this worked for me
Copy link to clipboard
Copied
ANSWER (if not 'answer' - at least code that 'works')
<cfftp action="remove"
connection="myConnection1"
item="#myPath##fileName#" >
This is not what the docs say- or how other examples on line convey it - but this worked for me
Copy link to clipboard
Copied
I'm not sure where you got the "This is not what the docs say" part. Looking down the list of CFFTP attributes in the CF11 docs that apply to a "remove" operation, those were the attributes I would have expected to need. Although I agree the examples could be clearer and a specific example of removing a file would be useful.
-Carl V.