Promise<string | null | undefined>:插件安装目录路径
PluginManager
getPluginDirPath
获取插件安装目录路径。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
获取插件安装目录路径。
getPluginDirPath(): Promise<string | null | undefined>;
Promise<string | null | undefined>:插件安装目录路径import { PluginManager } from 'sn-plugin-lib';
/**
* 获取插件目录路径的示例。
*/
export async function exampleGetPluginDirPath() {
const dir = await PluginManager.getPluginDirPath();
return dir;
}