Skip to content

Interface: MastraFileSystemAdapterOptions

Options for filesystems / MastraFileSystemAdapter.

  • MastraFilesystemOptions

optional id?: string

Override the Mastra filesystem id. Defaults to the source FileSystem.id.


optional name?: string

Override the Mastra display name. Defaults to MastraFileSystemAdapter.


optional onDestroy?: FilesystemLifecycleHook

Called before the filesystem is destroyed

MastraFilesystemOptions.onDestroy


optional onInit?: FilesystemLifecycleHook

Called after the filesystem reaches ‘ready’ status

MastraFilesystemOptions.onInit


optional provider?: string

Override the Mastra provider id. Defaults to the source FileSystem.backend.


optional readOnly?: boolean

Force read-only mounts even when the source filesystem allows writes. The source FileSystem.readOnly flag still applies either way.