ZIP task auto determine if needs to decompress or not

8 views
Skip to first unread message

Antek

unread,
Sep 15, 2009, 3:45:19 PM9/15/09
to CozyRoc
What is the easiest way of having the ZIP task determine if it needs
to decompress a file or not? My problem is that I get a mixed set of
files from a Foreach loop that contains both compressed and un-
compressed files and only the .gz need to be uncompressed.

- Antek

Ivan Peev

unread,
Sep 16, 2009, 10:11:03 AM9/16/09
to CozyRoc
Antek,

What method do you use to get the list of files you have to process?
If you use the standard Foreach file enumerator, you can setup it to
get only the files with .gz file extension. Set Files input like this:
*.gz

If that is not the case, you can use the SSIS expressions to detect
if the file extension ends with .gz. Use this expression in a
constraint before the decompression of a file.

Regards,
Ivan
Reply all
Reply to author
Forward
0 new messages