Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix path

sytolk4a3788150cc2
diff --git a/src/renderer/hooks/OpenedEntryContextProvider.tsx b/src/renderer/hooks/OpenedEntryContextProvider.tsx
index 5ee675ba6..a287de91e 100644
--- a/src/renderer/hooks/OpenedEntryContextProvider.tsx
+++ b/src/renderer/hooks/OpenedEntryContextProvider.tsx
@@ -46,8 +46,7 @@ import {
cleanTrailingDirSeparator,
extractContainingDirectoryPath,
generateSharingLink,
- getMetaFileLocationForDir,
- getMetaFileLocationForFile,
+ joinPaths,
normalizePath,
} from '@tagspaces/tagspaces-common/paths';
import {
@@ -649,8 +648,12 @@ export const OpenedEntryContextProvider = ({
showNotification(t('core:invalidLink'), 'warning', true);
return true;
}
- const dirFullPath =
- locationPath + PlatformIO.getDirSeparator() + directoryPath;
+ const dirFullPath = joinPaths(
+ PlatformIO.getDirSeparator(),
+ locationPath,
+ directoryPath,
+ );
+ //locationPath + PlatformIO.getDirSeparator() + directoryPath;
openDirectory(dirFullPath);
} else {
openDirectory(locationPath);