Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a few thousands files in a directory ( files are in different subfolders) and I want to zip all the files into a single .zip file.
Here is what I already did:
tFileList --- tFileCopy (I copied all the files in the directory into a temporary folder)
| OnSubjobOk
tFileArchive (I took all the files in that temporary folder and archived them into one single .zip file).
The whole process takes less than 1 minute and did what I want.
What I don't like is I have to create that extra temporary folder to hold all the files first.
So I was thinking of a different way to do it:
tFileList ----- iIterateToFlow ---- tFileArchive
The process would run and created the .zip file but it seems to take forever to complete ( I killed the job before it completed).
Why this process is so so slow? Is it a correct way to do the same job?
Thanks!
TM
Hi Dijke,
Within the three thousands source files, most of them are .xlsm, only a few are .xls files.
Talking about the 2nd method I tried, the connection between tIterateToFlow and tFileArchive is row(Main), but it looked like the job was looping through the files ONE BY ONE. It seems strange to me.
BTW, did you mean my 2nd method is also a correct one to go?
Are there other files in the directory that you don't want to include in the zip file?
No. Basically I want to create a .zip file for ALL files from the directory. So in both methods, "All Files" was checked in tFileArchive component.
Hi,
You can zip the details in single run by selecting the sub directory option (if all the files are under single parent directory which you want to zip in one go). The description says,
Select this check box if you want to add the files in the subdirectories to the archive file.
This field is available only when zip is selected from the Archive format list.
But please note that it will maintain the directory structure as many scenarios require the files to be zipped with directory structure intact (example, all log files for a week which are stored in daily directories are zipped and archived).
In this situation, you can avoid the copy step and iteration step. Could you please try this also?
Warm Regards,
Nikhil Thampi
tFileList ----- iIterateToFlow ---- tFileArchive
Hi nikhilthampi,
In the above job, I did have Subdirectories checked on tFileArchive component.
Otherwise, the process would NOT create the .zip file in the target path at all (because my files are under the different subdirectories).
Thanks!
TM