Feature or enhancement
(A clear and concise description of your proposal.)
Pitch
I’m proposing we add a isjunction method to os.path and a is_junction method to pathlib.Path. Both would return True if the given path is a junction. On Posix the API would exist, but would always return False as this tends to be a Windows-only thing.
We have similar logic to check for concepts like ismount, islink, etc. So i figure this would fit in.
Previous discussion
See https://discuss.python.org/t/add-mechanism-to-check-if-a-path-is-a-junction/20952 and then lower down https://mail.python.org/archives/list/python-ideas@python.org/thread/KQ7AELTQRLYOXD434GQ2AHNDD23C4CYG/
There didn't seem to be any hard -1s to this proposal.
Linked PRs
Feature or enhancement
(A clear and concise description of your proposal.)
Pitch
I’m proposing we add a
isjunctionmethod to os.path and ais_junctionmethod topathlib.Path. Both would return True if the given path is a junction. On Posix the API would exist, but would always return False as this tends to be a Windows-only thing.We have similar logic to check for concepts like
ismount,islink, etc. So i figure this would fit in.Previous discussion
See https://discuss.python.org/t/add-mechanism-to-check-if-a-path-is-a-junction/20952 and then lower down https://mail.python.org/archives/list/python-ideas@python.org/thread/KQ7AELTQRLYOXD434GQ2AHNDD23C4CYG/
There didn't seem to be any hard -1s to this proposal.
Linked PRs