MCPcopy Index your code
hub / github.com/RustPython/RustPython / drive

Method drive

Lib/pathlib/__init__.py:342–348  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_parse_pathMethod · 0.95

Tested by

no test coverage detected