This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch fix/CAMEL-24123
in repository https://gitbox.apache.org/repos/asf/camel.git

commit b968ee2e2e452d1c7c462f024e0d58179c57da16
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jul 16 13:32:18 2026 +0200

    CAMEL-24123: camel-smb - Fix readLock=changed with recursive=true never 
consuming sub-directory files
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../apache/camel/component/smb/strategy/SmbExclusiveReadLockCheck.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-smb/src/main/java/org/apache/camel/component/smb/strategy/SmbExclusiveReadLockCheck.java
 
b/components/camel-smb/src/main/java/org/apache/camel/component/smb/strategy/SmbExclusiveReadLockCheck.java
index 67fba1b0db11..efe1e2b39f1b 100644
--- 
a/components/camel-smb/src/main/java/org/apache/camel/component/smb/strategy/SmbExclusiveReadLockCheck.java
+++ 
b/components/camel-smb/src/main/java/org/apache/camel/component/smb/strategy/SmbExclusiveReadLockCheck.java
@@ -84,7 +84,7 @@ public class SmbExclusiveReadLockCheck {
 
         String path = file.getParent();
         if (operations instanceof SmbOperations smbOperations) {
-            return smbOperations.listFiles(path, file.getFileName());
+            return smbOperations.listFiles(path, file.getFileNameOnly());
         }
         return operations.listFiles(path);
     }

Reply via email to