MCPcopy Index your code
hub / github.com/python/cpython / drive

Method drive

Lib/pathlib/__init__.py:344–350  ·  view source on GitHub ↗

The drive prefix (letter or UNC path), if any.

(self)

Source from the content-addressed store, hash-verified

342
343 @property
344 def drive(self):
345 """The drive prefix (letter or UNC path), if any."""
346 try:
347 return self._drv
348 except AttributeError:
349 self._drv, self._root, self._tail_cached = self._parse_path(self._raw_path)
350 return self._drv
351
352 @property
353 def root(self):

Callers

nothing calls this directly

Calls 1

_parse_pathMethod · 0.95

Tested by

no test coverage detected