mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-14 09:18:04 -05:00
19 lines
501 B
Python
19 lines
501 B
Python
from openhands.storage.files import FileStore
|
|
|
|
|
|
class E2BFileStore(FileStore):
|
|
def __init__(self, filesystem):
|
|
self.filesystem = filesystem
|
|
|
|
def write(self, path: str, contents: str) -> None:
|
|
self.filesystem.write(path, contents)
|
|
|
|
def read(self, path: str) -> str:
|
|
return self.filesystem.read(path)
|
|
|
|
def list(self, path: str) -> list[str]:
|
|
return self.filesystem.list(path)
|
|
|
|
def delete(self, path: str) -> None:
|
|
self.filesystem.delete(path)
|