(params: ReadFileParams)
| 109 | } |
| 110 | |
| 111 | async read(params: ReadFileParams): Promise<FileContent> { |
| 112 | const encodedPath = encodeURIComponent(params.path) |
| 113 | return this.client._fetch<FileContent>( |
| 114 | `/v1/sandboxes/${params.sandboxId}/files?path=${encodedPath}`, |
| 115 | ) |
| 116 | } |
| 117 | |
| 118 | async list(params: ListFilesParams): Promise<FileEntryInfo[]> { |
| 119 | const query = new URLSearchParams({ path: params.path }) |
no test coverage detected