On this page
  1. genericpath.isjunction
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

genericpath.isjunction

Prev: genericpath.isfile | Up: genericpath | Next: genericpath.islink
Rel: genericpath.commonprefix, genericpath.exists, genericpath.getatime, genericpath.getctime
Ref: docs.python.org — genericpath.isjunction
Tags: #public #python3 #stdlib #genericpath


Import

import genericpath
from genericpath import isjunction

Signature & Overview

genericpath.isjunction(path)

Test whether a path is a junction Junctions are not supported on the current platform

Usage

import os

# Python 3.12+: True only for Windows NTFS junctions (always False on Unix)
if hasattr(os.path, "isjunction"):
    assert os.path.isjunction(".") is False

Gotchas

REPL Inspect

from genericpath import isjunction
help(isjunction)

Linked from

Related notes