This is an automated email from the ASF dual-hosted git repository.
orpiske 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 2b9391f3f3b CAMEL-20823 Filter out folders when listing files
2b9391f3f3b is described below
commit 2b9391f3f3b95192c9d5986af88d21d3d2f0fc48
Author: Tom Cunningham <[email protected]>
AuthorDate: Fri May 31 14:27:59 2024 -0400
CAMEL-20823 Filter out folders when listing files
---
.../src/main/java/org/apache/camel/component/smb/SmbConsumer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
index 130dd88de3c..d7f28c22aa7 100644
---
a/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
+++
b/components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbConsumer.java
@@ -64,7 +64,7 @@ public class SmbConsumer extends ScheduledPollConsumer {
IdempotentRepository repository =
configuration.getIdempotentRepository();
for (FileIdBothDirectoryInformation f :
share.list(configuration.getPath(), configuration.getSearchPattern())) {
- if (f.getFileName().equals(".") ||
f.getFileName().equals("..")) {
+ if (f.getFileName().equals(".") ||
f.getFileName().equals("..") || share.folderExists(f.getFileName())) {
continue;
}