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

The File component should be able to include the `doneFile` as well

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-M3
    • Fix Version/s: 3.x
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I want to sync the files from a directory to an S3 bucket - in case there's a doneFile in the directory. It's an easy job with the file component and with the aggregator.

      But I do want to include the doneFile as well.

      As far as I understand it's easy to implement a new query parameter to the file component (includeDoneFile) and modify the GenericFileConsumer accordingly (around the 660. line):

                  if (endpoint.isDoneFile(file.getFileNameOnly()) && !endpoint.isIncludeDoneFile()) {
                      log.trace("Skipping done file: {}", file);
                      return false;
                  }
      

      Would you accept a PR with this change?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vilmos.nagy Vilmos Nagy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: