# ReadFileSystem

Interface

Source: https://github.com/playcanvas/splat-transform/blob/b6424a5b3b929695fbaafe738a995adb1240d675/src/lib/io/read/file-system.ts#L111

Interface for a file system that can create readable sources.
Implementations exist for various backends (URL, Node FS, Zip, Memory).

## Methods

### createSource

```ts
createSource(filename: string, progress?: ProgressCallback): Promise<ReadSource>
```

Create a readable source for the given path/identifier.

**Parameters**

- `filename` (`string`): Path or identifier for the resource
- `progress` ([`ProgressCallback`](https://api.playcanvas.com/splat-transform/types/ProgressCallback.md), optional): Optional callback for progress reporting

**Returns** `Promise<`[`ReadSource`](https://api.playcanvas.com/splat-transform/interfaces/ReadSource.md)`>`: Promise resolving to a ReadSource
