On this page
ntpath.exists
Prev: ntpath.dirname | Up: ntpath | Next: ntpath.expanduser
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.exists
Tags: #public #python3 #stdlib #ntpath
Import
import ntpath
from ntpath import exists
Signature & Overview
ntpath.exists(path)
Test whether a path exists. Returns False for broken symbolic links
Usage
import ntpath
assert ntpath.exists('.') is True
Gotchas
- Queries the host OS: Prefer
os.path.exists()orPath.exists().
REPL Inspect
from ntpath import exists
help(exists)
Linked from
Related notes
- tuts/python3/stdlib_module/ntpath/dirname Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/expanduser 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/expandvars shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/getatime shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/getctime shared tags: #ntpath, #stdlib