Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
stvn
Contributor
Contributor

How create dynamic directories based on the words contained in the path provided in the input file?

Hello every one,

I have an input files with different rows like that:

/Default/First/Second/Third/

/Default/First/Second/Third/

Output (Directories):

Default

First

Second

I need to have as an output some directories related to each word contained in the different path. So I know I have to extract each word and generate some dynamic directories. I don't know which component to extract each word from row and which other component to create directories.

I'm new on Talend and I have a basic on Java. thank you for your help

Stev

Labels (3)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

Question 

 

Find a sample job . Please change the path in last Component.

 

Also You can replace 1st component by input file component ( Read full line in one single column)

 

assumption , 

1)All the directories needs to be created in same base/home folder.

2) The file contains only Directory Names0683p000009M1Vx.jpg

 

you could reuse above logic to extract words from line and create directory. 


CreateDirSample_0.1.zip

View solution in original post

4 Replies
akumar2301
Specialist II
Specialist II

Question 

 

Find a sample job . Please change the path in last Component.

 

Also You can replace 1st component by input file component ( Read full line in one single column)

 

assumption , 

1)All the directories needs to be created in same base/home folder.

2) The file contains only Directory Names0683p000009M1Vx.jpg

 

you could reuse above logic to extract words from line and create directory. 


CreateDirSample_0.1.zip
akumar2301
Specialist II
Specialist II

if all ok , Please mark request as resolved.
stvn
Contributor
Contributor
Author

Hi M. Kumar,
I would like to thank you for your help. The job is going pretty well.
stvn
Contributor
Contributor
Author

Hi M. Kumar,
Excuse me to come back to you, I was wondering if you could help me again. How can i get as an ouput, a delimited file csv with lines:
/Default/
/Default/First
/Default/Fisrt/Second
from Input: /Default/First/Second/
I tried with tfileOutputDelimited but it didn't work.
Thank you in advance.