One Star

[resolved] creating directories in FTP server

Hi,
is it possible to create FTP directories using tFTPPut component? I need to transfer directories, and files in those directories.
If tFTPPut is too castrated to do the job so is there any other way to do this task?

Thanks
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] creating directories in FTP server

alrighty, I am using tSystem component to create directories.
This is how it works, just an example.
in component command: "
cmd /c ftp -s:ftp.txt "+context.host

Context.host has the IP address
ftp.txt looks like this:
Your_username
Your_password
cd mydir
mkdir hellooo
dir
bye
4 REPLIES
One Star

Re: [resolved] creating directories in FTP server

If you are accessing a unix server thru your ftp connection, then you can use tssh component to run a unix command to create a new dir.
One Star

Re: [resolved] creating directories in FTP server

this is the problem. I don't have ssh facility in this server.
One Star

Re: [resolved] creating directories in FTP server

I found one component tFTPCreateDir in talend exchange. (http://www.talendforge.org/exchange/index.php?eid=198&product=tos&action=view&nav=1,1,1)
However, it is not compatible with the Talend 4.2.0
Any ideas how can I make it work with the latest version of Talend? Thanks.
One Star

Re: [resolved] creating directories in FTP server

alrighty, I am using tSystem component to create directories.
This is how it works, just an example.
in component command: "
cmd /c ftp -s:ftp.txt "+context.host

Context.host has the IP address
ftp.txt looks like this:
Your_username
Your_password
cd mydir
mkdir hellooo
dir
bye