This commit is contained in:
Manav Rathi 2024-04-13 21:34:37 +05:30
parent 67a81f8d86
commit e87c7ed108
No known key found for this signature in database

View file

@ -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}`;