MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / pluginDataFileExists

Function pluginDataFileExists

src/settings/settingsPersistence.ts:60–76  ·  view source on GitHub ↗
(host: SettingsDataHost)

Source from the content-addressed store, hash-verified

58}
59
60export async function pluginDataFileExists(host: SettingsDataHost): Promise<boolean> {
61 const dataPath = getPluginDataPath(host);
62 if (!dataPath) {
63 return false;
64 }
65
66 try {
67 return await host.app.vault.adapter.exists(dataPath);
68 } catch (error) {
69 tasknotesLogger.warn("[TaskNotes] Could not check settings data file existence:", {
70 category: "configuration",
71 operation: "check-settings-data-file-existence",
72 error: error,
73 });
74 return false;
75 }
76}
77
78export async function loadPluginSettingsDataWithRetry(
79 host: SettingsDataHost,

Calls 3

getPluginDataPathFunction · 0.85
existsMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected