Grive / grive

an open source Linux client for Google Drive
http://www.lbreda.com/grive/start
GNU General Public License v2.0
1.59k stars 378 forks source link

Make download sync (more) atomic #291

Open pedorro opened 9 years ago

pedorro commented 9 years ago

Download sync should write to a temporary hidden location then move the file to the file to its correct location only after the download completes. This is similar to 'rsync' behavior.

I suggest this because I've had a large file corrupted when the sync was interrupted in the middle of download. Then the local corrupted version, having a newer timestamp, was written back up to my Google Drive on the next sync. This resulted in the loss of that data.