On this page
ntpath.islink
Prev: ntpath.isjunction | Up: ntpath | Next: ntpath.ismount
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.islink
Tags: #public #python3 #stdlib #ntpath
Import
import ntpath
from ntpath import islink
Signature & Overview
ntpath.islink(path)
Test whether a path is a symbolic link
Usage
import ntpath
assert ntpath.islink('.') is False
Gotchas
- True for both valid and broken symlinks.
REPL Inspect
from ntpath import islink
help(islink)
Linked from
Related notes
- tuts/python3/stdlib_module/ntpath/isjunction Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/ismount 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