zzz / openhands /storage /files.py
ar08's picture
Upload 1040 files
246d201 verified
raw
history blame contribute delete
390 Bytes
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