(self, path)
| 615 | return result |
| 616 | |
| 617 | def _get_path_str(self, path): |
| 618 | if isinstance(path, str): |
| 619 | path = path.replace("\\", "/").replace("//", "/").split("/") |
| 620 | elif isinstance(path, Path): |
| 621 | path = str(path).replace("\\", "/").replace("//", "/").split("/") |
| 622 | else: |
| 623 | raise TypeError("path must be str or Path") |
| 624 | path[-1] = path[-1].split(".")[0] |
| 625 | return "/".join(path) |
| 626 | |
| 627 | def _save(self, file, save_path): |
| 628 | content = file.file.read() |
no outgoing calls
no test coverage detected