MCPcopy Create free account
hub / github.com/microsoft/Webwright / _sorted_image_paths

Function _sorted_image_paths

src/webwright/tools/self_reflection.py:98–104  ·  view source on GitHub ↗
(image_dir: Path)

Source from the content-addressed store, hash-verified

96
97
98def _sorted_image_paths(image_dir: Path) -> list[Path]:
99 if not image_dir.is_dir():
100 return []
101 return sorted(
102 [path for path in image_dir.iterdir() if path.is_file() and path.suffix.lower() in _IMAGE_SUFFIXES],
103 key=lambda path: _final_execution_sort_key(path.name),
104 )
105
106
107def _discover_latest_run_screenshots(

Callers 1

Calls 1

Tested by

no test coverage detected