You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/12/19 16:29:23 UTC
(camel) branch main updated: fix(file): cannot assume a . is always an hidden dir (#12489)
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 <pa...@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();