MCPcopy Index your code
hub / github.com/microsoft/playwright-python / make_dirs_for_file

Function make_dirs_for_file

playwright/_impl/_helper.py:522–525  ·  view source on GitHub ↗
(path: Union[Path, str])

Source from the content-addressed store, hash-verified

520
521
522def make_dirs_for_file(path: Union[Path, str]) -> None:
523 if not os.path.isabs(path):
524 path = Path.cwd() / path
525 os.makedirs(os.path.dirname(path), exist_ok=True)
526
527
528async def async_writefile(file: Union[str, Path], data: Union[str, bytes]) -> None:

Callers 5

screenshotMethod · 0.90
stop_tracingMethod · 0.90
save_asMethod · 0.90
screenshotMethod · 0.90
pdfMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected