Skip to content

[WIP] GH-89812: Add tarfile.TarPath - #104272

Closed
barneygale wants to merge 2 commits into
python:mainfrom
barneygale:gh-89812-tarpath
Closed

barneygale wants to merge 2 commits into
python:mainfrom
barneygale:gh-89812-tarpath

Conversation

@barneygale

@barneygale barneygale commented May 7, 2023 •

Copy link
Copy Markdown
Contributor
  • Split pathlib.Path into _AbstractPath and Path
    • Make _AbstractPath.stat(), open() and iterdir() abstract
    • Implement _AbstractPath._scandir() via iterdir()
      • Add follow_symlinks argument to is_dir() for consistency with os.DirEntry.is_dir()
      • Use context manager enter value in walk() to enable use of a contextlib.nullcontext()
    • Implement _AbstractPath.is_mount() and is_junction() using stat(), restoring implementation from before gh-86943: implement pathlib.WindowsPath.is_mount() #31458 in the former case.
  • [more to come!]
@barneygale

Copy link
Copy Markdown
Contributor Author

Closing - will log a fresh PR soon :)

@barneygale barneygale closed this Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants