Spaces:
Configuration error
Configuration error
Download openhands/runtime/impl/e2b/filestore.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/impl/e2b/filestore.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/runtime/impl/e2b/filestore.py
-
curl -L -o filestore.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/impl/e2b/filestore.py
509 Bytes
| from openhands.storage.files import FileStore | |
| class E2BFileStore(FileStore): | |
| def __init__(self, filesystem): | |
| self.filesystem = filesystem | |
| def write(self, path: str, contents: str | bytes) -> 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) | |