[ https://issues.apache.org/jira/browse/CAMEL-3894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023647#comment-13023647 ]
Claus Ibsen commented on CAMEL-3894: ------------------------------------ There are both a min depth and max depth option etc. How far should we take this? So if we set maxDepth=3, then the file consumer will only at most traverse down 3 paths. {code} <starting> + level1 + level2 + level3 + level4 {code} eg in this case the file consumer will only go down as far as level3 directory. > Support maxdepth option on File Component when recursive option is enabled > -------------------------------------------------------------------------- > > Key: CAMEL-3894 > URL: https://issues.apache.org/jira/browse/CAMEL-3894 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.6.0 > Reporter: Jesus CASTILLO > > It would be great if the File component adds support for the maxdepth option > just like the find command does, so we can prune the recursive directory > search when recursive is enabled. > With maxdepth we can set the levels of Directories to descend during the > pollDirectory function. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira