π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Handle file updates by re-downloading data
Neeraj Gupta11f0597a7f89
diff --git a/pkg/remote_to_disk_file.go b/pkg/remote_to_disk_file.goindex de2937412e..55791bd585 100644--- a/pkg/remote_to_disk_file.go+++ b/pkg/remote_to_disk_file.go@@ -101,6 +101,13 @@ func (c *ClICtrl) downloadEntry(ctx context.Context,}return nil}+ diskFileMeta := diskInfo.GetDiskFileMetadata(file)+ if diskFileMeta != nil {+ removeErr := removeDiskFile(diskFileMeta, diskInfo)+ if removeErr != nil {+ return removeErr+ }+ }if !diskInfo.IsFilePresent(file) {decrypt, err := c.downloadAndDecrypt(ctx, file, c.KeyHolder.DeviceKey)if err != nil {