Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix export trash movement

Manav Rathif2a764aac2ff
diff --git a/web/apps/photos/src/services/export/index.ts b/web/apps/photos/src/services/export/index.ts
index b387d4fd3c..c46e1d8fc7 100644
--- a/web/apps/photos/src/services/export/index.ts
+++ b/web/apps/photos/src/services/export/index.ts
@@ -1398,17 +1398,19 @@ const moveToTrash = async (
if (await fs.exists(filePath)) {
await fs.mkdirIfNeeded(trashDir);
- const trashFilePath = await safeFileName(trashDir, fileName, fs.exists);
+ const trashFileName = await safeFileName(trashDir, fileName, fs.exists);
+ const trashFilePath = `${trashDir}/${trashFileName}`;
await fs.rename(filePath, trashFilePath);
}
if (await fs.exists(metadataFilePath)) {
await fs.mkdirIfNeeded(metadataTrashDir);
- const metadataTrashFilePath = await safeFileName(
+ const metadataTrashFileName = await safeFileName(
metadataTrashDir,
metadataFileName,
fs.exists,
);
+ const metadataTrashFilePath = `${metadataTrashDir}/${metadataTrashFileName}`;
await fs.rename(metadataFilePath, metadataTrashFilePath);
}
};