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

Method list_files

apps/admin/services.py:1565–1576  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1563
1564class LocalFileService:
1565 async def list_files(self):
1566 files = []
1567 if not os.path.exists(data_root / "local"):
1568 os.makedirs(data_root / "local")
1569 for file in os.listdir(data_root / "local"):
1570 local_file = LocalFileClass(file)
1571 files.append({
1572 "file": local_file.file,
1573 "ctime": local_file.ctime,
1574 "size": local_file.size,
1575 })
1576 return files
1577
1578 async def delete_file(self, filename: str):
1579 file = LocalFileClass(filename)

Callers

nothing calls this directly

Calls 2

LocalFileClassClass · 0.85
existsMethod · 0.80

Tested by

no test coverage detected