Thank you very much for this useful script...
I have a question: how can I fix the error, which I get every time, when a number of listed files becomes more than 1000.
The error looks like that:
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : xmlParseCharRef: invalid xmlChar value 7 in /home/***/aws/Guzzle/Http/Message/Response.php on line 877
Thanks in advance,