GH-105793: Add follow_symlinks argument to `pathlib.Path.is_dir()` and `is_file()` by barneygale · Pull Request #105794 · python/cpython
Conversation
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
GH-105793: Add follow_symlinks argument to pathlib.Path.is_dir()pathlib.Path.is_dir() and is_file()
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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