FilesystemBackend 真实文件系统后端 直接操作磁盘文件,通过 Sandbox 接口进行安全访问 适用于需要与实际工作空间文件交互的场景
| 15 | // 直接操作磁盘文件,通过 Sandbox 接口进行安全访问 |
| 16 | // 适用于需要与实际工作空间文件交互的场景 |
| 17 | type FilesystemBackend struct { |
| 18 | fs sandbox.SandboxFS |
| 19 | } |
| 20 | |
| 21 | // NewFilesystemBackend 创建 FilesystemBackend 实例 |
| 22 | func NewFilesystemBackend(fs sandbox.SandboxFS) *FilesystemBackend { |
nothing calls this directly
no outgoing calls
no test coverage detected