Highlighted
One Star

[resolved] tFTPGet retrieves directory instead of file

Hi,
I'm having a problem using 'tFTPGet' component. In some .txt files, it is retrieving those files like they were directories...
For example, it creates a directory called "file1.txt" and gives me the error:
Exception in component tFTPGet_1
com.enterprisedt.net.ftp.FTPException: 550 /home/file1.txt: Not a directory.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1201)
at com.enterprisedt.net.ftp.FTPClient.chdir(FTPClient.java:3723)
at test_di.ftp3_0_1.ftp3$1FTPGetter_tFTPGet_1.getAllFiles(ftp3.java:413)
at test_di.ftp3_0_1.ftp3$1FTPGetter_tFTPGet_1.getAllFiles(ftp3.java:444)
at test_di.ftp3_0_1.ftp3.tFTPGet_1Process(ftp3.java:614)
at test_di.ftp3_0_1.ftp3.tFTPConnection_1Process(ftp3.java:356)
at test_di.ftp3_0_1.ftp3.runJobInTOS(ftp3.java:852)
at test_di.ftp3_0_1.ftp3.main(ftp3.java:718)
If I delete that file from my remote directory, it will fail in another file...
I'm using the Filemask "*".
Do you know what could be happening?
Thanks.
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] tFTPGet retrieves directory instead of file

Hi, thank you for your answer. I found latter that I was having a problem in that FTP connection. The problem was not related to Talend!
4 REPLIES
Seventeen Stars

Re: [resolved] tFTPGet retrieves directory instead of file

What is your remote directory? I would suggest using always absolute path. It looks like you have used nothing or simply a dot for it.
One Star

Re: [resolved] tFTPGet retrieves directory instead of file

It seems to be all ok:
Local directory: "./NewFolder"
Remote directory: "/home/user/"
Filemask: "*"
Community Manager

Re: [resolved] tFTPGet retrieves directory instead of file

Hi
It looks strange to me that you specify the remote directory to "/home/user/", but it was trying to find a file under "/home/". Which version of Talend Studio are you using? I do a quick testing on v5.4.1, and it works. tFTPGet downloads all the files and its sub-folders in the specified directory if I set the filemask as "*".
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] tFTPGet retrieves directory instead of file

Hi, thank you for your answer. I found latter that I was having a problem in that FTP connection. The problem was not related to Talend!