[resolved] creating directories in FTP server

Highlighted
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

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

All 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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now