On this page
genericpath.isdevdrive
Prev: genericpath.getsize | Up: genericpath | Next: genericpath.isdir
Rel: genericpath.commonprefix, genericpath.exists, genericpath.getatime, genericpath.getctime
Ref: docs.python.org — genericpath.isdevdrive
Tags: #public #python3 #stdlib #genericpath
Import
import genericpath
from genericpath import isdevdrive
Signature & Overview
genericpath.isdevdrive(path)
Determines whether the specified path is on a Windows Dev Drive.
Usage
import os
# Python 3.12+: True only on Windows Dev Drives (always False on Unix)
if hasattr(os.path, "isdevdrive"):
assert isinstance(os.path.isdevdrive("."), bool)
Gotchas
- Requires Python 3.12+: Always returns
Falseon non-Windows platforms.
REPL Inspect
from genericpath import isdevdrive
help(isdevdrive)
Linked from
Related notes
- tuts/python3/stdlib_module/genericpath/getsize Linked here; links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/isdir Linked here; links to this page; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/genericpath/commonprefix Linked here; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/exists Linked here; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/getatime Linked here; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/getctime Linked here; shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/getmtime shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/isfile shared tags: #genericpath, #stdlib
- tuts/python3/stdlib_module/genericpath/isjunction shared tags: #genericpath, #stdlib