Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9610

Chmod does not work properly with "recursive=true"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.2
    • 2.17.0
    • camel-core
    • None
    • java 7 and Linux

    Description

      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&consumer.delay=2000&recursive=true" />
      <camel:to uri="file:local.outputDir?chmod=output.chmod&charset=charset"/>

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            nicolas_mugnier Nicolas Mugnier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified