This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.4.x by this push:
new f176095ca24 CAMEL-20823 Filter out folders when listing files (#14493)
f176095ca24 is described below
commit f176095ca24572dcffb7b7d556b644a3ae250bf6
Author: Tom Cunningham <[email protected]>
AuthorDate: Wed Jun 12 08:01:36 2024 -0400
CAMEL-20823 Filter out folders when listing files (#14493)
---
.../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 d9bb35aba00..58484c2e293 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
@@ -58,7 +58,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;
}