Files
OpenHands/openhands/storage/files.py
2025-01-03 16:30:25 -07:00

20 lines
371 B
Python

from abc import abstractmethod
class FileStore:
@abstractmethod
def write(self, path: str, contents: str | bytes) -> None:
pass
@abstractmethod
def read(self, path: str) -> str:
pass
@abstractmethod
def list(self, path: str) -> list[str]:
pass
@abstractmethod
def delete(self, path: str) -> None:
pass