(root, name)
| 26 | |
| 27 | |
| 28 | def checked_path(root, name): |
| 29 | path = PurePosixPath(name) |
| 30 | if not name or path.is_absolute() or ".." in path.parts or "\\" in name or ":" in name: |
| 31 | raise ValueError("invalid path in browser build evidence") |
| 32 | return root.joinpath(*path.parts) |
| 33 | |
| 34 | |
| 35 | def validate_browser_build(ui_dir): |
no outgoing calls
no test coverage detected