Fix overlong path handling in listDir Use checked snprintf calls for file paths on both platforms and the Windows search pattern. Log an error and skip paths that do not fit. Add a regression test for a normal directory and an overlong table path, including the error diagnostic. Clean up temporary directories on success, failure and skip, and return 77 when the long-path case cannot run. Fixes #2115. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>