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