Tin mới
barneygale:gh-89727-rmtree-safe
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
Code ReviewManage code changes
Code QualityEnforce quality at merge
GitHub Advanced SecurityFind and fix vulnerabilities
Code securitySecure your code as you build
Secret protectionStop leaks before they start
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
Change shutil.rmtree and os.walk to support very deep hierarchies #89727
Tidy up _rmtree_safe_fd() implementation.
Use DirEntry.stat() where possible.
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
Handle further errors in finally: block
Skip os.unlink() if os.DirEntry.is_dir() raises FileNotFoundError
recursion error on deep trees (
bedevere-app Bot commented Jun 1, 2024
GH-119918 is a backport of this pull request to the 3.13 branch.
recursion error on deep trees (
recursion error on deep trees (
recursion error on deep trees (
recursion error on deep trees (
recursion error on deep trees (