Skip to content

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

TSN847 - Move / Copy file functionality json and tmb files are not copied/moved if the name of the main file has spaces (#1678)

Stanimir79bda7a7d15e
diff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.ts
index 6003bfbc3..19ef19e74 100644
--- a/app/reducers/io-actions.ts
+++ b/app/reducers/io-actions.ts
@@ -101,8 +101,16 @@ const actions = {
getMetaFileLocationForFile(job[1], PlatformIO.getDirSeparator())
]);
moveMetaJobs.push([
- getThumbFileLocationForFile(job[0], PlatformIO.getDirSeparator()),
- getThumbFileLocationForFile(job[1], PlatformIO.getDirSeparator())
+ getThumbFileLocationForFile(
+ job[0],
+ PlatformIO.getDirSeparator(),
+ false
+ ),
+ getThumbFileLocationForFile(
+ job[1],
+ PlatformIO.getDirSeparator(),
+ false
+ )
]);
renameFilesPromise(moveMetaJobs)
.then(() => {
@@ -149,8 +157,16 @@ const actions = {
getMetaFileLocationForFile(job[1], PlatformIO.getDirSeparator())
]);
copyMetaJobs.push([
- getThumbFileLocationForFile(job[0], PlatformIO.getDirSeparator()),
- getThumbFileLocationForFile(job[1], PlatformIO.getDirSeparator())
+ getThumbFileLocationForFile(
+ job[0],
+ PlatformIO.getDirSeparator(),
+ false
+ ),
+ getThumbFileLocationForFile(
+ job[1],
+ PlatformIO.getDirSeparator(),
+ false
+ )
]);
copyFilesPromise(copyMetaJobs)
.then(() => {