Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathie87c7ed108cb
diff --git a/web/apps/photos/src/services/export/migration.ts b/web/apps/photos/src/services/export/migration.ts
index d4610da90a..31741a4341 100644
--- a/web/apps/photos/src/services/export/migration.ts
+++ b/web/apps/photos/src/services/export/migration.ts
@@ -250,10 +250,8 @@ async function migrateFiles(
newFileSaveName,
);
- const newFileMetadataSavePath = getFileMetadataSavePath(
- collectionIDPathMap.get(file.collectionID),
- newFileSaveName,
- );
+ const newFileMetadataSavePath = `${collectionIDPathMap.get(file.collectionID)}/${exportMetadataDirectoryName}/${newFileSaveName}.json`;
+
if (!(await exportService.exists(oldFileSavePath))) {
continue;
}
@@ -502,12 +500,6 @@ const getExportedFiles = (
const oldSanitizeName = (name: string) =>
name.replaceAll("/", "_").replaceAll(" ", "_");
-const getFileMetadataSavePath = (
- collectionFolderPath: string,
- fileSaveName: string,
-) =>
- `${collectionFolderPath}/${exportMetadataDirectoryName}/${fileSaveName}.json`;
-
const getFileSavePath = (collectionFolderPath: string, fileSaveName: string) =>
`${collectionFolderPath}/${fileSaveName}`;