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

Function pathname2url

tools/python-3.11.9-amd64/Lib/urllib/request.py:1685–1688  ·  view source on GitHub ↗

OS-specific conversion from a file system path to a relative URL of the 'file' scheme; not recommended for general use.

(pathname)

Source from the content-addressed store, hash-verified

1683 return unquote(pathname)
1684
1685 def pathname2url(pathname):
1686 """OS-specific conversion from a file system path to a relative URL
1687 of the 'file' scheme; not recommended for general use."""
1688 return quote(pathname)
1689
1690
1691ftpcache = {}

Callers 2

_get_projectMethod · 0.50

Calls 1

quoteFunction · 0.90

Tested by

no test coverage detected