On this page
ntpath.isdir
Prev: ntpath.isdevdrive | Up: ntpath | Next: ntpath.isfile
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.isdir
Tags: #public #python3 #stdlib #ntpath
Import
import ntpath
from ntpath import isdir
Signature & Overview
ntpath.isdir(s)
Return true if the pathname refers to an existing directory.
Usage
import ntpath
assert ntpath.isdir('.') is True
Gotchas
- Follows symlinks; prefer
Path.is_dir().
REPL Inspect
from ntpath import isdir
help(isdir)
Linked from
Related notes
- tuts/python3/stdlib_module/ntpath/isdevdrive Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/isfile 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