move remove before new files export
This commit is contained in:
parent
438952e34c
commit
1932912542
|
@ -269,6 +269,17 @@ class ExportService {
|
||||||
exportRecord.exportedCollectionPaths
|
exportRecord.exportedCollectionPaths
|
||||||
);
|
);
|
||||||
const collectionIDNameMap = getCollectionNameMap(collections);
|
const collectionIDNameMap = getCollectionNameMap(collections);
|
||||||
|
|
||||||
|
const removedFileUIDs = getDeletedExportedFiles(
|
||||||
|
userPersonalFiles,
|
||||||
|
exportRecord
|
||||||
|
);
|
||||||
|
|
||||||
|
if (removedFileUIDs?.length > 0) {
|
||||||
|
addLogLine(`removing ${removedFileUIDs.length} files`);
|
||||||
|
await this.fileRemover(removedFileUIDs, exportDir);
|
||||||
|
}
|
||||||
|
|
||||||
const renamedCollections = getRenamedCollections(
|
const renamedCollections = getRenamedCollections(
|
||||||
userCollections,
|
userCollections,
|
||||||
exportRecord
|
exportRecord
|
||||||
|
@ -300,15 +311,6 @@ class ExportService {
|
||||||
exportDir
|
exportDir
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const removedFileUIDs = getDeletedExportedFiles(
|
|
||||||
userPersonalFiles,
|
|
||||||
exportRecord
|
|
||||||
);
|
|
||||||
|
|
||||||
if (removedFileUIDs?.length > 0) {
|
|
||||||
addLogLine(`removing ${removedFileUIDs.length} files`);
|
|
||||||
await this.fileRemover(removedFileUIDs, exportDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
const deletedExportedCollections = getDeletedExportedCollections(
|
const deletedExportedCollections = getDeletedExportedCollections(
|
||||||
userCollections,
|
userCollections,
|
||||||
|
|
Loading…
Reference in a new issue