MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / to_decoded_posix_path

Function to_decoded_posix_path

src/commoncode/resource.py:1178–1182  ·  view source on GitHub ↗

Return `path` as a Unicode POSIX path given a unicode or bytes path string.

(path)

Source from the content-addressed store, hash-verified

1176
1177
1178def to_decoded_posix_path(path):
1179 """
1180 Return `path` as a Unicode POSIX path given a unicode or bytes path string.
1181 """
1182 return clean_path(os.fsdecode(as_posixpath(path)))
1183
1184
1185@attr.attributes(slots=True)

Callers

nothing calls this directly

Calls 2

as_posixpathFunction · 0.90
clean_pathFunction · 0.85

Tested by

no test coverage detected