💾 Archived View for tris.fyi › pydoc › nturl2path captured on 2022-07-16 at 14:55:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

nturl2path

Convert a NT pathname to a file URL and vice versa.

This module only exists to provide OS-specific code
for urllib.requests, thus do not use directly.

Functions

pathname2url

pathname2url(p)

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

url2pathname

url2pathname(url)

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