Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get a note file type.
static getNoteType(NOTEPath: string): Promise<APIResponse<number>>;
NOTEPath
string
APIResponse<number>
result
0
1
import { PluginFileAPI } from 'sn-plugin-lib'; /** * Example: get note type. */ export async function exampleGetNoteType() { const NOTEPath = '/storage/emulated/0/Note/demo.note'; const res = await PluginFileAPI.getNoteType(NOTEPath); if (!res.success) { throw new Error(res.error?.message ?? 'getNoteType call failed'); } return res.result; }