On this page
posixpath.isjunction
Prev: posixpath.isfile | Up: posixpath | Next: posixpath.islink
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.isjunction
Tags: #public #python3 #stdlib #posixpath
Import
import posixpath
from posixpath import isjunction
Signature & Overview
posixpath.isjunction(path)
Test whether a path is a junction Junctions are not supported on the current platform
Usage
import posixpath
if hasattr(posixpath, 'isjunction'):
assert isinstance(posixpath.isjunction('.'), bool)
Gotchas
- Requires Python 3.12+: Checks for Windows NTFS junctions.
REPL Inspect
from posixpath import isjunction
help(isjunction)
Linked from
Related notes
- tuts/python3/stdlib_module/posixpath/isfile Linked here; links to this page; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/islink Linked here; links to this page; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posixpath/abspath Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/basename Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/commonpath Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/commonprefix Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/dirname shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/exists shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/expanduser shared tags: #posixpath, #stdlib