I'm not sure if this is a bug or a feature, but with recursive operation, if a get fails and retrieve_tree bails out then no sensible error codes are returned to main.c (errors are only passed up if the user's quota was full, the URL was invalid or there was a write error) so retrieve_tree always returns RETROK causing the main function to return with an exit status of 0 even if there was an error.
With single wgets you get a non-zero error code if the operation failed. This is kind of annoying if you are trying to determine of a recursive operation completed successfully in a shell script. Is there a good reason why retrieve tree doesn't just return the status of the last failed operation on failure? Even if this weren't the default behaviour it would be useful as at the moment there is no way to find out if a recursive get failed or succeeded. owen cliffe -----------