(self)
| 1563 | |
| 1564 | class 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) |
nothing calls this directly
no test coverage detected