Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

How to check if a zip file is empty

$
0
0
Hi, i'll show you my priject once agai. Sorry about that.
This project simply download several files form the web (with the HTTP entry job) using a list of URLs contained in a MySQL table.
Everytime it downloads a file it checks if the resource in internet has been modified (it does that using the header if-modified-since) and store the Last-Download-Date on the same MySQL table for eache file. So it downloads the files just if it isn't been modified since the last download.
To check if the file has been downloaded it counts the rows of the file and if those are zero it doesn't change the data. This because when you use the HTTP entry jon with an header it downloads the file anyway but it's empty.
THIS JOB WORKS PERFECTLY WITH CSV FILES.
Now i have to do the same thing with zip files.
How can i check if a zip file is empty as i usually check if a csv has no rows ???
I need a way to know if a zip file it's been downlaoded again or not !!
Here's my project.
Attached Files

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>