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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Reading all files from the directory

Which component to use to pick all files in from the directory and and processing file it should archive file in someother location.
Labels (2)
7 Replies
alevy
Specialist
Specialist

tFileArchive
Anonymous
Not applicable
Author

I m using tFileList to read files from directories. After reading files I need them to archived so that I should read them second time when job runs again. How can I do that.
alevy
Specialist
Specialist

Link tFileArchive (or tFileCopy) to the tFileOutputDelimited with OnComponentOK. Note that tFileArchive does not add new files to an existing archive; it will replace the existing archive.
Anonymous
Not applicable
Author

tFileArchive- input folder and archive file name needs to be specified. It archive all files in one file. I need separate archive files for each input file. After archival remove files from input folder.
alevy
Specialist
Specialist

tFileArchive has a check-box in the basic settings to include "All Files" by default. If you uncheck it, you can specify exactly which file(s) you want to include in the archive. It does not currently include an option to "move" the files to the archive (i.e. to delete them after zipping them) but you can follow the tFileArchive with a tFileDelete.
Anonymous
Not applicable
Author

I want each file should be archived separately.
alevy
Specialist
Specialist

If you've joined tFileArchive to the tFileOutputDelimited with OnComponentOK as I suggested, it will run for each iteration from tFileList so you can archive each file separately.