TagSpaces is an offline, open source, document manager with tagging support
fix copy file from S3 to local -meta files is not imported
Stanimir8cd50d99c011
diff --git a/src/renderer/hooks/IOActionsContextProvider.tsx b/src/renderer/hooks/IOActionsContextProvider.tsxindex 87601b363..b1da8f5ab 100644--- a/src/renderer/hooks/IOActionsContextProvider.tsx+++ b/src/renderer/hooks/IOActionsContextProvider.tsx@@ -1242,32 +1242,26 @@ export const IOActionsContextProvider = ({sourceLocationId: string = undefined,): Promise<TS.FileSystemEntry[]> {const metaJobs: job[] = [];+ const targetLocation = findLocation(targetLocationId);for (let i = 0; i < paths.length; i++) {const src = paths[i];let dst = joinPaths(- currentLocation?.getDirSeparator(),+ targetLocation?.getDirSeparator(),targetPath,- extractFileName(src, AppConfig.dirSeparator),+ extractFileName(src),);// meta filemetaJobs.push({- src: getMetaFileLocationForFile(src, AppConfig.dirSeparator),- dst: getMetaFileLocationForFile(- dst,- currentLocation!.getDirSeparator(),- ),+ src: getMetaFileLocationForFile(src),+ dst: getMetaFileLocationForFile(dst),type: 'meta',});// thumb filemetaJobs.push({- src: getThumbFileLocationForFile(src, AppConfig.dirSeparator, false),- dst: getThumbFileLocationForFile(- dst,- currentLocation!.getDirSeparator(),- false,- ),+ src: getThumbFileLocationForFile(src, undefined, false),+ dst: getThumbFileLocationForFile(dst, undefined, false),type: 'thumb',originalPathForThumb: src,});