Inline
This commit is contained in:
parent
67a81f8d86
commit
e87c7ed108
1 changed files with 2 additions and 10 deletions
|
@ -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}`;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue