Loading
Fix empty checkout dirs and Docs/Docs/ URL duplication
Three fixes for checkout reliability: 1. checkout_tdoc: 'already checked out' guard now verifies the directory contains actual files, not just that it exists. Empty dirs from failed downloads trigger re-download. 2. fetch_tdoc_files: uses _checkout_has_files() instead of bare Path.exists() to decide whether download is needed. 3. _resolve_corrected_url: walks up parent directories when direct listing fails, handling duplicated path segments (e.g. Docs/Docs/). Also triggered on HTTPError (403), not just BadZipFile. 4. checkout_tdoc: HTTPError from download triggers URL correction fallback, not just BadZipFile.