Skip to content

Plugins.writePluginFiles method

Plugins › writePluginFiles

Unofficial

Write a plugin's release files into its folder under Plugins.getPluginFolder, creating the folders as needed and removing a stale styles.css when the release has none.

Signature:

writePluginFiles(id: string, files: PluginReleaseFiles): Promise<string>

Parameters:

ParameterTypeDescription
idstring{@link obsidian#Plugin} ID.
filesPluginReleaseFilesThe downloaded release files.

Returns: Promise<string> — A promise that resolves to the plugin's folder path.