π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix downloaded cache check
Neeraj Gupta21792a684638
diff --git a/pkg/download.go b/pkg/download.goindex a5231ba3b6..3bd39cb045 100644--- a/pkg/download.go+++ b/pkg/download.go@@ -23,9 +23,8 @@ func (c *ClICtrl) downloadAndDecrypt(dir := c.tempFolderdownloadPath := fmt.Sprintf("%s/%d", dir, file.ID)// check if file exists- if _, err := os.Stat(downloadPath); err == nil {+ if stat, err := os.Stat(downloadPath); err == nil && stat.Size() == file.Info.FileSize {log.Printf("File already exists %s (%s)", file.GetTitle(), utils.ByteCountDecimal(file.Info.FileSize))-} else {log.Printf("Downloading %s (%s)", file.GetTitle(), utils.ByteCountDecimal(file.Info.FileSize))err := c.Client.DownloadFile(ctx, file.ID, downloadPath)