Highlighted

Error 550 when using CFFTP to remove a file

Explorer ,
Sep 16, 2014

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

Views

295

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Error 550 when using CFFTP to remove a file

Explorer ,
Sep 16, 2014

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

Views

296

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 16, 2014 0
Explorer ,
Sep 16, 2014

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 16, 2014 0
Most Valuable Participant ,
Sep 16, 2014

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 16, 2014 0