MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / as_uri

Method as_uri

tools/python-3.11.9-amd64/Lib/pathlib.py:563–567  ·  view source on GitHub ↗

Return the path as a 'file' URI.

(self)

Source from the content-addressed store, hash-verified

561 return "{}({!r})".format(self.__class__.__name__, self.as_posix())
562
563 def as_uri(self):
564 """Return the path as a 'file' URI."""
565 if not self.is_absolute():
566 raise ValueError("relative path can't be expressed as a file URI")
567 return self._flavour.make_uri(self)
568
569 @property
570 def _cparts(self):

Callers 1

Calls 2

is_absoluteMethod · 0.95
make_uriMethod · 0.45

Tested by

no test coverage detected