Skip to main content

get_data_root_path

Function get_data_root_path 

Source
pub fn get_data_root_path() -> PathBuf
Expand description

获取插件数据根目录

如:bot.get_data_path()/path/data/plugin_name/

那么这个插件的数据目录就是 /path/data/