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