Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error 550 when using CFFTP to remove a file

Explorer ,
Sep 16, 2014 Sep 16, 2014

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" >

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

correct answers 1 Correct answer

Explorer , Sep 16, 2014 Sep 16, 2014

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

Translate
Explorer ,
Sep 16, 2014 Sep 16, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 16, 2014 Sep 16, 2014
LATEST

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.

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