Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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

View solution in original post

5 Replies
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

this is the problem. I don't have ssh facility in this server.
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

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
antoine_beharel
Contributor
Contributor

Use tFTPPut with Create Directory checked and a file mask not selecting any files !