FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-105793: Add follow_symlinks argument to `pathlib.Path.is_dir()` and `is_file()` by barneygale · Pull Request #105794 · python/cpython · GitHub

Repository navigation

GH-105793: Add follow_symlinks argument to pathlib.Path.is_dir() and is_file() - #105794

Merged
barneygale merged 7 commits into
python:mainfrom
barneygale:gh-105793-is-dir-follow-symlinks
Jun 26, 2023
Merged

barneygale merged 7 commits into
python:mainfrom
barneygale:gh-105793-is-dir-follow-symlinks

Conversation

barneygale commented Jun 14, 2023 •
edited
Loading

Copy link
Copy Markdown
Contributor

Brings pathlib.Path.is_dir() in line with os.DirEntry.is_dir(), likewise is_file(), which will be important for implementing generic path walking and globbing.


📚 Documentation preview 📚: https://cpython-previews--105794.org.readthedocs.build/

Brings `pathlib.Path.is_dir()` in line with `os.DirEntry.is_dir()`, which
will be important for implementing generic path walking and globbing.
barneygale changed the title GH-105793: Add follow_symlinks argument to pathlib.Path.is_dir() GH-105793: Add follow_symlinks argument to pathlib.Path.is_dir() and is_file() Jun 15, 2023

Copy link
Copy Markdown
Contributor Author

@zooba would you be up for reviewing this? It's similar to #102616, and necessary for a pathlib.AbstractPath or tarfile.TarPath to support globbing. Thank you, no worries if not!

zooba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL