This commit is contained in:
Manav Rathi
2024-04-14 10:28:27 +05:30
parent 7438c3301e
commit 14922b65f8

View File

@@ -200,11 +200,7 @@ async function migrateCollectionFolders(
) {
const fs = ensureElectron().fs;
for (const collection of collections) {
const oldCollectionExportPath = getOldCollectionFolderPath(
exportDir,
collection.id,
collection.name,
);
const oldCollectionExportPath = `${exportDir}/${collection.id}_${oldSanitizeName(collection.name)}`;
const newCollectionExportPath = await safeDirectoryName(
exportDir,
collection.name,
@@ -494,12 +490,6 @@ const oldSanitizeName = (name: string) =>
const getFileSavePath = (collectionFolderPath: string, fileSaveName: string) =>
`${collectionFolderPath}/${fileSaveName}`;
const getOldCollectionFolderPath = (
dir: string,
collectionID: number,
collectionName: string,
) => `${dir}/${collectionID}_${oldSanitizeName(collectionName)}`;
const getUniqueFileExportNameForMigration = (
collectionPath: string,
filename: string,