prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

gdrive sync upload misses one file #365

Open warrendodge opened 6 years ago

warrendodge commented 6 years ago

In using this command in which I changed the file key gdrive sync upload --delete-extraneous SHARED_PICTURES 1234567Q9W4hRlJeHSeh1UKMDl5QybsFR

It will sync fine but there seems to always be some that is left out of the sync. I did a gdrive sync content --path-width 9999 12345679W4hRlJeHSeh1UKMDl5QybsFR and a find . -ls of my local directory and get this difference after a sync

diff drive local 87a88

JPG_dads_dvd_family_tree_ANNOTATED/Gains_Blevins_Family_JPG/George Blevins with Horses_TC600JPG.jpg 310a312 JPG_dads_dvd_family_tree_CORRECTIONS/Gains_Blevins_Family_JPG/George Blevins with Horses_TC600JPG.jpg 539a542 familySearch.org_Pictures/BlevinsSide/tree_sophia_moats_blevins_from_gary.jpg

Not sure what is going on.

warrendodge commented 6 years ago

I worked on this some. The files system I am using is on my WIRELESS ROUTER HARDRIVE. It has a server that provides a CIFS file system interface. I am running gdrive on a gnu linux system that has mounted the harddrive with the following mount line in fstab //linksys1900ac/SeagateBackupPlusDrive /SeagateBackupPlusDrive cifs _netdev,username=warren,password=xxxxx,auto,dir_mode=0755,file_mode=0755,uid=966,gid=1004 0 0 I get this info when I run it on the mounted drive. Found 591 local files and 591 remote files If I copy the data to a local drive it shows me this Found 594 local files and 591 remote files and uploads the additional 3 files that were missing. If I go back to the CIFS it will remove those three files

I also tried changing file names and sizes in the directory. It then started removing other files and still ignoring the 3.

There is something subtle going on. I put println in the gdrive code in a number of places and none of the SKIP_ON_ERROR lines are being executed. It is something to do with the "walk" function that reads them all in.

I am not sure how to debug beyond what I have done. Any help would be appreciated.

I tried the Google gdrive on windows and it won't do a CIFS mounted file system so that doesn't really help me. I need the tree to be shared for what I am doing.