rdubois-mel commented on issue #4866:
URL: https://github.com/apache/hop/issues/4866#issuecomment-2894238434

   And to do this correctly, also modify the action itself to throw an error if 
the file does not exist.
   
   In the 
`plugins/actions/ftp/src/main/java/org/apache/hop/workflow/actions/ftp/ActionFtp.java`
 file at line 356
   
   ```java
         // move to spool dir ...
         if (!Utils.isEmpty(remoteDirectory)) {
           String realFtpDirectory = resolve(remoteDirectory);
           realFtpDirectory = normalizePath(realFtpDirectory);
           boolean exists = ftpClient.changeWorkingDirectory(realFtpDirectory);
           if (!exists) {
             logError(BaseMessages.getString(PKG, 
"ActionFTP.NonExistentFolder"));
             return result;
           }
           if (isDetailed()) {
             logDetailed(BaseMessages.getString(PKG, "ActionFTP.ChangedDir", 
realFtpDirectory));
           }
         }
   ```


-- 
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