mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
20 lines
371 B
Python
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
|