vitalif / grive2

Google Drive client with support for new Drive REST API and partial sync
http://yourcmc.ru/wiki/Grive2
GNU General Public License v2.0
1.52k stars 141 forks source link

Deletes files when parent folder is moved #243

Open xaled opened 5 years ago

xaled commented 5 years ago

Hello,

I was testing if grive detects directory moving and does not resync them, I had a file "file" under the directory test. In google drive web interface, i moved the directory "test" to the directory "Others", and then I run grive. Grive successfully detected that the file was moved, however, it deleted its parent folder before moving it:

Reading local directories
Reading remote server file list
Synchronizing files
sync "./test" deleted in remote. deleting local
sync "./Others" created in remote. creating local
sync "./Others/test" created in remote. creating local
sync "./test/file" moved to "./Others/test/file". moving local
Error syncing "./Others/test/file": boost::filesystem::rename: No such file or directory: "./test/file", "./Others/test/file"
Finished!

I have grive version 0.5.1-dev Aug 20 2018 11:13:28 installed in Xubuntu 18.04 from webupd8 repository.

smilesun commented 5 months ago

same problem here