MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / file_exists

Method file_exists

core/storage.py:250–257  ·  view source on GitHub ↗

检查文件是否存在于本地文件系统 :param save_path: 文件路径 :return: 文件是否存在

(self, save_path: str)

Source from the content-addressed store, hash-verified

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
260class S3FileStorage(FileStorageInterface):

Callers

nothing calls this directly

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected