summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.path.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r--Doc/library/os.path.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 7881c52..3a668e2 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -304,6 +304,24 @@ the :mod:`glob` module.)
Accepts a :term:`path-like object`.
+.. function:: isdevdrive(path)
+
+ Return ``True`` if pathname *path* is located on a Windows Dev Drive.
+ A Dev Drive is optimized for developer scenarios, and offers faster
+ performance for reading and writing files. It is recommended for use for
+ source code, temporary build directories, package caches, and other
+ IO-intensive operations.
+
+ May raise an error for an invalid path, for example, one without a
+ recognizable drive, but returns ``False`` on platforms that do not support
+ Dev Drives. See `the Windows documentation <https://learn.microsoft.com/windows/dev-drive/>`_
+ for information on enabling and creating Dev Drives.
+
+ .. availability:: Windows.
+
+ .. versionadded:: 3.12
+
+
.. function:: join(path, *paths)
Join one or more path segments intelligently. The return value is the