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 140 forks source link

Grive2 is not downloading files with same name as different files #22

Open iamprem opened 9 years ago

iamprem commented 9 years ago

In Google drive we can have multiple files/folders with same name. This is not supported by grive2.

Grive2 just downloads only one file among those and ignoring other files.

vitalif commented 9 years ago

I think it's more a feature than a bug :-)

vitriolix commented 9 years ago

Agree, it's an insane behavior on Drive's part. The trick is, what if i have a broken upload, then i reuploaded using the web ui, which created dupes, which does Grive2 download? I suppose a simple "last modified wins" would be sensible in 99% of cases

iamprem commented 9 years ago

@vitalif are you using any kind of database in your application to track file id, name and path? If we use a database to track the file list, we can easily track files with same name but different id. So when syncing we just need to rename the files accordingly like Google drive client in PC.

vitalif commented 9 years ago

No, there is no DB (yet?.. I've thought about adding something like Git "index" to have fast change detection)