检查文件是否存在于本地文件系统 :param save_path: 文件路径 :return: 文件是否存在
(self, save_path: str)
| 248 | logger.info(f"清理 chunks 父目录失败: {e}") |
| 249 | |
| 250 | async def file_exists(self, save_path: str) -> bool: |
| 251 | """ |
| 252 | 检查文件是否存在于本地文件系统 |
| 253 | :param save_path: 文件路径 |
| 254 | :return: 文件是否存在 |
| 255 | """ |
| 256 | file_path = self.root_path / save_path |
| 257 | return file_path.exists() |
| 258 | |
| 259 | |
| 260 | class S3FileStorage(FileStorageInterface): |