MCPcopy Create free account
hub / github.com/pallets/quart / file_path_to_path

Function file_path_to_path

src/quart/utils.py:35–43  ·  view source on GitHub ↗
(*paths: FilePath)

Source from the content-addressed store, hash-verified

33
34
35def file_path_to_path(*paths: FilePath) -> Path:
36 # Flask supports bytes paths
37 safe_paths: list[str | os.PathLike] = []
38 for path in paths:
39 if isinstance(path, bytes):
40 safe_paths.append(path.decode())
41 else:
42 safe_paths.append(path)
43 return Path(*safe_paths)
44
45
46def run_sync(func: Callable[..., Any]) -> Callable[..., Coroutine[None, None, Any]]:

Callers 3

send_fileFunction · 0.85
__init__Method · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…