> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.FsExternalApi.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface FsExternalApi

```typescript
interface FsExternalApi {
    list(slotId: string, path?: string): Promise<ExternalFolderEntry[]>;
    readBinary(slotId: string, path: string): Promise<ExternalReadBinaryResult>;
    readText(slotId: string, path: string): Promise<string>;
    writeText(
        slotId: string,
        path: string,
        content: string,
        expectedSha256: string | null,
    ): Promise<ExternalWriteTextResult>;
}
```

Types: [list](#list-1), [ExternalFolderEntry](core.ExternalFolderEntry.md), [readBinary](#readbinary-1), [ExternalReadBinaryResult](core.ExternalReadBinaryResult.md), [readText](#readtext-1), [writeText](#writetext-1), [ExternalWriteTextResult](core.ExternalWriteTextResult.md)

##### Index

### <a id="methods"></a>Methods

[list](#list) [readBinary](#readbinary) [readText](#readtext) [writeText](#writetext)

## <a id="methods-1"></a>Methods

### <a id="list"></a>list

*   <a id="list-1"></a>
    
    ```typescript
    list(slotId: string, path?: string): Promise<ExternalFolderEntry[]>
    ```
    
    Types: [ExternalFolderEntry](core.ExternalFolderEntry.md)
    
    #### Parameters
    
    *   slotId: string
    *   `Optional`path: string
    
    #### Returns Promise<[ExternalFolderEntry](core.ExternalFolderEntry.md)\[\]\>
    

### <a id="readbinary"></a>readBinary

*   <a id="readbinary-1"></a>
    
    ```typescript
    readBinary(slotId: string, path: string): Promise<ExternalReadBinaryResult>
    ```
    
    Types: [ExternalReadBinaryResult](core.ExternalReadBinaryResult.md)
    
    #### Parameters
    
    *   slotId: string
    *   path: string
    
    #### Returns Promise<[ExternalReadBinaryResult](core.ExternalReadBinaryResult.md)\>
    

### <a id="readtext"></a>readText

*   <a id="readtext-1"></a>
    
    ```typescript
    readText(slotId: string, path: string): Promise<string>
    ```
    
    #### Parameters
    
    *   slotId: string
    *   path: string
    
    #### Returns Promise<string\>
    

### <a id="writetext"></a>writeText

*   <a id="writetext-1"></a>
    
    ```typescript
    writeText(
        slotId: string,
        path: string,
        content: string,
        expectedSha256: string | null,
    ): Promise<ExternalWriteTextResult>
    ```
    
    Types: [ExternalWriteTextResult](core.ExternalWriteTextResult.md)
    
    #### Parameters
    
    *   slotId: string
    *   path: string
    *   content: string
    *   expectedSha256: string | null
    
    #### Returns Promise<[ExternalWriteTextResult](core.ExternalWriteTextResult.md)\>
