7 Replies Latest reply on Apr 26, 2012 4:05 AM by davsclaus

    Unable to get moveFailed to work for File2 component

    mohithanda

      Hi Guys,

       

      I had a look at the documentation on http://camel.apache.org/file2.html

       

      I tried the following endpoints to consume files

       

      file:C:
      temp
      csv?move=done&moveFailed=error/-$.$

       

      file:C:
      temp
      csv?move=done&moveFailed=error
      -$.$

       

      And I get the following error

       

      Cannot create directory: C:\temp\csv\error\{file:name.noext}-now:yyyyMMddHHmmssSSS.ext (could be because of denied permissions)

       

      Now the interesting thing is, if I use just file:C:
      temp
      csv?move=done&moveFailed=error, it creates error directory and puts the source file into the  error directory.

       

      So, I am not sure why I am getting permission denied issues. Also, not sure why the errors says Can not create directory, I am just sending file to an existing directory. Because error directory was created when I used file:C:
      temp
      csv?move=done&moveFailed=error

       

      Please advise.

       

      Regards,

      Mohit