π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Replicate previous behaviour
Manav Rathi5ffc2f20fd28
diff --git a/web/apps/photos/src/services/export/index.ts b/web/apps/photos/src/services/export/index.tsindex c46e1d8fc7..b02e05a428 100644--- a/web/apps/photos/src/services/export/index.ts+++ b/web/apps/photos/src/services/export/index.ts@@ -547,6 +547,9 @@ class ExportService {isCanceled: CancellationStatus,) {const fs = ensureElectron().fs;+ const rmdirIfExists = async (dirPath: string) => {+ if (await fs.exists(dirPath)) await fs.rmdir(dirPath);+ };try {const exportRecord = await this.getExportRecord(exportFolder);const collectionIDPathMap =@@ -581,11 +584,11 @@ class ExportService {);try {// delete the collection metadata folder- await fs.rmdir(+ await rmdirIfExists(getMetadataFolderExportPath(collectionExportPath),);// delete the collection folder- await fs.rmdir(collectionExportPath);+ await rmdirIfExists(collectionExportPath);} catch (e) {await this.addCollectionExportedRecord(exportFolder,