import { PluginFileAPI } from 'sn-plugin-lib';
/**
* 查询文件或目录加密状态的示例。
*/
export async function exampleGetPathEncryptionStatus() {
const filePath = '/storage/emulated/0/Note/demo.note';
const res = await PluginFileAPI.getPathEncryptionStatus(filePath);
if (!res.success) {
throw new Error(res.error?.message ?? 'getPathEncryptionStatus 调用失败');
}
return res.result;
}