Enhances path handling and file resolution #5

Merged
AlexKucera merged 36 commits from 1.3.0 into master 2025-09-25 16:47:12 +02:00
Showing only changes of commit 0cd6b53687 - Show all commits
+5 -1
View File
3
@@ -150,8 +150,12 @@ export class BinaryLocator {
private static async validateBinaryExists(binaryPath: string, plugin?: obsidianTypstPDFExport): Promise<boolean> {
try {
if (!plugin?.app) {
return false;
// This should not happen in normal plugin operation, but provide fallback
const fs = require('fs').promises;
await fs.access(binaryPath);
return true;
}
const pathUtils = new PathUtils(plugin.app);
return await pathUtils.fileExists(binaryPath);
} catch {