Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] unzip multiple folder and iterating to unzip files inside the folder

I have a folder with zip files. The zip files contains multiple .gz file. How should i create a flow wher in it first unzips the initial zip and then we have to iterate thru the inner .gz files and unzip that
Flow
Folder/exampl1.zip -- 11.gz
-- 12.gz
-- 13.gz
Folder/exampl2.zip -- 21.gz
-- 22.gz
-- 23.gz
I want to extract folders as follows
folder/exampl1/11.gz
folder/exampl1/12.gz
folder/exampl1/13.gz
folder/exampl2/21.gz
folder/exampl2/21.gz
folder/exampl2/21.gz
Then iterate into
folder/exampl1/11.gz and unzip this
folder/exampl1/12.gz and unzip this
folder/exampl1/13.gz and unzip this
folder/exampl1/21.gz and unzip this
folder/exampl1/22.gz and unzip this
folder/exampl1/23.gz and unzip this
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I used a single directory for saving the extracted files from the first zip then it worked tx all 0683p000009MACn.png

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi,
For your scenario, you can design your job as:tFileList-->tFileUnarchive
|
onSubjobOK
|
tFileList_2-->tFileUnarchive_2
Please take a look at my screenshots for details
Best regards
Sabrina
0683p000009MDds.png 0683p000009MDk8.png 0683p000009MDcU.png 0683p000009MDfF.png
Anonymous
Not applicable
Author

Thanks for the fast reply. I did the flow but getting the following error
0683p000009MDWX.png 0683p000009MDXm.png
Anonymous
Not applicable
Author

hi,
as log said , you (your process) haven't got the permission to access file (or repository).
regards
laurent
Anonymous
Not applicable
Author

I used a single directory for saving the extracted files from the first zip then it worked tx all 0683p000009MACn.png
Anonymous
Not applicable
Author

Hi,
Glad you could solve the issue. Could you please click the "Set this topic as resolved" link which is right underneath your initial post? This way, other users will be informed that this thread has been resolved.
Many thanks
Best regards
Sabrina