GitHub user rdubois-mel edited a discussion: Get File with FTP configuration

Hello,

I don't understand how to configure the "Get File With FTP" action.

Am I misconfiguring it, or is it buggy?

Let me explain:
I connect to an FTP server, change the remote directory, and enter a ".*" 
wildcard to retrieve everything in that folder.

But according to the logs, it doesn't seem to actually change folders.
```
2025/05/20 11:45:46 - test_ftp - Starting action [Get a file with FTP]
2025/05/20 11:45:46 - test_ftp - exec(1, 0, Get a file with FTP)
2025/05/20 11:45:46 - Get a file with FTP - Starting action
2025/05/20 11:45:46 - Get a file with FTP - Started FTP workflow to 
ftp.*******.fr
2025/05/20 11:45:46 - Get a file with FTP - Start of FTP action
2025/05/20 11:45:46 - Get a file with FTP - Opened FTP connection to server 
[ftp.*******.fr]
2025/05/20 11:45:46 - Get a file with FTP - set passive ftp connection mode
2025/05/20 11:45:46 - Get a file with FTP - set binary transfer mode
2025/05/20 11:45:46 - Get a file with FTP - set timeout to 0
2025/05/20 11:45:46 - Get a file with FTP - set control encoding to UTF-8
2025/05/20 11:45:47 - Get a file with FTP - logged in with user CITEO
2025/05/20 11:45:47 - Get a file with FTP - Changed to directory [Finalisé]
2025/05/20 11:45:47 - Get a file with FTP - Found 1 files (or folders) in the 
remote ftp directory
2025/05/20 11:45:47 - Get a file with FTP - Analysing remote file [Finalisé] ...
2025/05/20 11:45:47 - Get a file with FTP - We skip filename [Finalisé] because 
it is not a file!
2025/05/20 11:45:47 - Get a file with FTP - 
=======================================
2025/05/20 11:45:47 - Get a file with FTP - Nr errors : 0
2025/05/20 11:45:47 - Get a file with FTP - Nr files downloaded : 0
2025/05/20 11:45:47 - Get a file with FTP - 
=======================================
2025/05/20 11:45:47 - test_ftp - Finished action [Get a file with FTP] 
(result=[true])
```

It looks like it doesn't actually change folders and lists the root.
The "Finalisé" directory does indeed exist on the FTP server and contains about 
ten XLSX files.

I've tried several syntaxes for the remote directory:
- /Finalisé
- /Finalisé/
- Finalisé/
- ./Finalisé
- ./Finalisé/

But I still get the same error.

Out of spite, I tried a "Copy files" in vfs, but I ended up with a Class not 
found error.

Have you ever managed to get this action to work by listing a subfolder?

Thanks.

Rémi

GitHub link: https://github.com/apache/hop/discussions/5336

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@hop.apache.org

Reply via email to