TagSpaces is an offline, open source, document manager with tagging support
fix Non existing folders should not be opened from ts links
sytolkd9c73aa5ba76
diff --git a/src/renderer/hooks/OpenedEntryContextProvider.tsx b/src/renderer/hooks/OpenedEntryContextProvider.tsxindex 4c3b2f56b..f454958e6 100644--- a/src/renderer/hooks/OpenedEntryContextProvider.tsx+++ b/src/renderer/hooks/OpenedEntryContextProvider.tsx@@ -725,12 +725,20 @@ export const OpenedEntryContextProvider = ({showNotification(t('core:invalidLink'), 'warning', true);return true;}+const dirFullPath = joinPaths(targetLocation.getDirSeparator(),locationPath,directoryPath,);- openDirectory(dirFullPath, undefined, targetLocation);++ targetLocation.checkDirExist(dirFullPath).then((exist) => {+ if (exist) {+ openDirectory(dirFullPath, undefined, targetLocation);+ } else {+ showNotification(t('core:invalidLink'), 'warning', true);+ }+ });} else {openDirectory(locationPath, undefined, targetLocation);}