ExperimentalOptional Readonly ExperimentalfileA signal emitted when a file operation takes place.
Content providers which perform save operations initiated on the backend may emit this signal to communicate a change in the file contents.
Optional Readonly ExperimentalsharedAn optional shared model factory instance for the drive.
ExperimentalGet a file or directory.
The path to the file.
Optionaloptions: IFetchOptionsThe options used to fetch the file.
A promise which resolves with the file content.
ExperimentalSave a file.
The desired file path.
Optionaloptions: Partial<Contents.IModel> & IContentProvisionOptionsOptional overrides to the model.
A promise which resolves with the file content model when the file is saved.
The content provider interface.
Content providers are similar to drives, but instead of a data storage, they represent the data retrieval method (think protocol). Each drive can have multiple providers registered, and each provider ID can be used to register an instance of such provider across multiple drives.
To provision file contents via a content provider:
contentProviderIdoptioncontentProviderIdoption