Dear all, how to get a specific file from a FTP server? I just configured a FTPGet component - FTP connection, remote dir and local dir are correct, everything works. But I only want to get a specific file from the FTP (e.g. "test.xml"). So I add to the file mask: "test.xml" - doesn't work "*test.xml" - works Problem - I cannot concat an asterisk with a context variable. So if I try to get files dynamically, nothing happens. However, the same problem I have with FTPPut - I have several XML files in the same directory. So I only want to transfer a specific file, but nothing happens. Using an asterisk would solve it. If I use a simple FileList with the configuration at the file mask, it works.
I get a single file by using the * Of course this may match multiple files. If I must match only one file I run a validation using tFtpFileList before getting the file Example FileMask for tFTPGet "*" + context.ftpFileDate + "*.flg"
Thanks Mike. Using a FtpFileList is not mandatory. FtpGet and FtpPut got own file masks. Finally you also use an asterisk to filter a file list even if you want to get/put only a single file. This makes me wonder. Maybe this is a bug. Would be great to have an answer of a talend moderator here.