Nicolas Mugnier created CAMEL-9610:
--------------------------------------

             Summary: Chmod does not work properly with "recursive=true"
                 Key: CAMEL-9610
                 URL: https://issues.apache.org/jira/browse/CAMEL-9610
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.15.2
         Environment: java 7 and Linux
            Reporter: Nicolas Mugnier


Hello,

It seems that the chmod does not work properly with the "recursive=true" URI 
option.

The chmod is only applied on the file, not also on the parent directories.

Example:
<camel:from 
uri="file:{{local.inputDir}}?readLock=changed&amp;consumer.delay=2000&amp;recursive=true&amp;autoCreate=false"
 />
<camel:to 
uri="file:{{local.outputDir}}?chmod={{output.chmod}}&amp;charset={{charset}}&amp;autoCreate=false"/>

If I paste a file into my input directory, everything works properly.
However, if I paste a directory into my input directory, only the "final' files 
will be chmoded. The parent directories of the file, located in my output 
directory, are not chmoded.

Best,
Nicolas.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to