oscerd commented on code in PR #28214:
URL: https://github.com/apache/camel/pull/28214#discussion_r4386837199


##########
components/camel-ftp-common/src/main/java/org/apache/camel/component/file/remote/AbstractSftpConsumer.java:
##########
@@ -80,6 +94,9 @@ protected void doStart() throws Exception {
 
     @Override
     protected boolean pollDirectory(Exchange dynamic, String fileName, 
List<GenericFile<SftpRemoteFile>> fileList, int depth) {
+        // resolved lazily during this poll on the first symbolic link 
encountered, as the starting directory can be replaced between polls
+        resolvedStartingDirectory = null;

Review Comment:
   Added `unresolvableLinks.clear();` at the top of `pollDirectory`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to