(self, absvpath: str, opener: Callable, *args)
| 119 | return obj |
| 120 | |
| 121 | def __open_new(self, absvpath: str, opener: Callable, *args) -> Any: |
| 122 | hpath = self.path.virtual_to_host_path(absvpath) |
| 123 | |
| 124 | if not self.path.is_safe_host_path(hpath): |
| 125 | raise PermissionError(f'unsafe path: {hpath}') |
| 126 | |
| 127 | return opener(hpath, *args) |
| 128 | |
| 129 | def open_ql_file(self, vpath: str, flags: int, mode: int): |
| 130 | absvpath = self.path.virtual_abspath(vpath) |
nothing calls this directly
no test coverage detected