1 Reply Latest reply on Nov 13, 2014 4:30 PM by Carl Von Stetten

    Help!!!! I am getting a 501 Syntax Error with CFFTP ListDir. I created the file in January of 2014 and today is the first time it has failed.

    WarrenJMeyer

      <!---Control the timeout--->

      <cfsetting requesttimeout="600">

      <cfset thisDate = now()>

      <cfset today = #DateFormat(thisDate,"mm-dd-yyyy")#>

       

      <!--- Open ftp connection --->

      <cfftp connection="MyFtp"

          server="#FTPserver#"

          username="#username#"

          password="#password#"

          action="Open"

          stoponerror="Yes">

         

      <cfftp action="listdir"

      stopOnError="Yes"

      name="Files"

      directory="/export400"

      connection="MyFtp"

      >

      SyntaxError.jpg