Rmdir and Purge read the response status code before checking for an error, so a failed DeleteFolder call with no HTTP response (a network error, or purging the root which fails validation) panicked. Thanks to @manus-pi for finding this problem.
Rmdir and Purge read the response status code before checking for an error, so a failed DeleteFolder call with no HTTP response (a network error, or purging the root which fails validation) panicked. Thanks to @manus-pi for finding this problem.