This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new c9ee94f0e76 fix(file): cannot assume a . is always an hidden dir (#12489) c9ee94f0e76 is described below commit c9ee94f0e76ebbca119c97e77287308bef2de79f Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Tue Dec 19 17:29:17 2023 +0100 fix(file): cannot assume a . is always an hidden dir (#12489) --- .../src/main/java/org/apache/camel/component/file/FileConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java b/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java index 01cb22018ef..8090f71550d 100644 --- a/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java +++ b/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java @@ -171,7 +171,7 @@ public class FileConsumer extends GenericFileConsumer<File> implements ResumeAwa } private File[] listFiles(File directory) { - if (!getEndpoint().isIncludeHiddenDirs() && directory.getName().startsWith(".")) { + if (!getEndpoint().isIncludeHiddenDirs() && directory.isHidden()) { return null; } final File[] dirFiles = directory.listFiles();