![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: download JPG series with error-handlingby inq123 (Sexton) |
on Mar 28, 2005 at 15:32 UTC ( #442835=note: print w/replies, xml ) | Need Help?? |
I thinking checking MIME type is better. But as another monk pointed out, you might want to check the returned file size to make sure it's not a generic image representing error. One could minimize the possibility of accidentally deleting non-error images of the same size by storing the names of the suspicious images and delete them once two or more of them were found in the same directory.
In Section
Seekers of Perl Wisdom
|
|