(self, file, save_path)
| 625 | return "/".join(path) |
| 626 | |
| 627 | def _save(self, file, save_path): |
| 628 | content = file.file.read() |
| 629 | name = save_path(file.filename) |
| 630 | path = self._get_path_str(save_path) |
| 631 | self.root_path.get_by_path(path).upload(name, content).execute_query() |
| 632 | |
| 633 | async def save_file(self, file: UploadFile, save_path: str): |
| 634 | await asyncio.to_thread(self._save, file, save_path) |
nothing calls this directly
no test coverage detected