You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/06/18 04:53:17 UTC
(camel) branch main updated: camel-smb: use getLastWriteTime instead of getChangeTime in GenericFile conversion (#18384)
This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 22410e4fcfb camel-smb: use getLastWriteTime instead of getChangeTime in GenericFile conversion (#18384)
22410e4fcfb is described below
commit 22410e4fcfbe83da0840e7565d7bdd254704bc76
Author: jubar <j_...@proton.me>
AuthorDate: Wed Jun 18 06:53:11 2025 +0200
camel-smb: use getLastWriteTime instead of getChangeTime in GenericFile conversion (#18384)
---
.../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 febd2603268..8a162801b25 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
@@ -318,7 +318,7 @@ public class SmbConsumer extends GenericFileConsumer<FileIdBothDirectoryInformat
genericFile.setHostname(configuration.getHostname());
genericFile.setFile(file);
genericFile.setEndpointPath(endpointPath);
- genericFile.setLastModified(file.getChangeTime().toEpochMillis());
+ genericFile.setLastModified(file.getLastWriteTime().toEpochMillis());
genericFile.setCharset(charset);
genericFile.setFileNameOnly(file.getFileName());
genericFile.setDirectory(isDirectory(file));