On this page
ntpath.isdevdrive
Prev: ntpath.isabs | Up: ntpath | Next: ntpath.isdir
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.isdevdrive
Tags: #public #python3 #stdlib #ntpath
Import
import ntpath
from ntpath import isdevdrive
Signature & Overview
ntpath.isdevdrive(path)
Determines whether the specified path is on a Windows Dev Drive.
Usage
import ntpath
if hasattr(ntpath, 'isdevdrive'):
assert isinstance(ntpath.isdevdrive('.'), bool)
Gotchas
- Requires Python 3.12+: Windows Dev Drive check (always
Falseon Unix).
REPL Inspect
from ntpath import isdevdrive
help(isdevdrive)
Linked from
Related notes
- tuts/python3/stdlib_module/ntpath/isabs Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/isdir 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