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