davsclaus commented on code in PR #11499: URL: https://github.com/apache/camel/pull/11499#discussion_r1334938726
########## components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java: ########## @@ -314,14 +317,15 @@ public FileEndpoint getEndpoint() { @Override protected boolean isMatchedHiddenFile(GenericFile<File> file, boolean isDirectory) { - if (getEndpoint().isIncludeHiddenFiles()) { - if (isDirectory) { - // skip hidden folders - String name = file.getFileNameOnly(); - if (name.startsWith(".")) { - return false; - } + if (isDirectory) { + String name = file.getFileNameOnly(); + if (!name.startsWith(".")) { + return true; } + return getEndpoint().isIncludeHiddenDir() && !".camel".equals(name); Review Comment: It could be a good idea to add ".camel" as a constant on FileConstants so its easier to see its a special folder name, and also use. the constant in FileProcessStrategyFactory -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org