TagSpaces is an offline, open source, document manager with tagging support
moveFiles bugfix
stanimirdd51b2addf3f
diff --git a/app/services/utils-io.ts b/app/services/utils-io.tsindex cf09df17c..63b933fb7 100644--- a/app/services/utils-io.ts+++ b/app/services/utils-io.ts@@ -500,7 +500,12 @@ export async function loadMetaDataPromise(path,PlatformIO.getDirSeparator());- let metaData = await loadJSONFile(metaFilePath);+ let metaData;+ try {+ metaData = await loadJSONFile(metaFilePath);+ } catch (e) {+ console.debug('cannot load json:' + metaFilePath, e);+ }if (!metaData) {metaData = {};}@@ -518,7 +523,12 @@ export async function loadMetaDataPromise(path,PlatformIO.getDirSeparator());- let metaData = await loadJSONFile(metaFilePath);+ let metaData;+ try {+ metaData = await loadJSONFile(metaFilePath);+ } catch (e) {+ console.debug('cannot load json:' + metaFilePath, e);+ }if (!metaData) {metaData = {};}