(host: SettingsDataHost)
| 58 | } |
| 59 | |
| 60 | export 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 | |
| 78 | export async function loadPluginSettingsDataWithRetry( |
| 79 | host: SettingsDataHost, |
no test coverage detected