drive icon indicating copy to clipboard operation
drive copied to clipboard

drive pull fails to fetch all files in large folder

Open bh4017 opened this issue 10 years ago • 3 comments

I have a directory on my Google Drive called Ebooks. It has ~1500 files in it. When I use 'drive pull Ebooks', I am presented with a list of files it intends to download and when I agree it tells me that it is fetching ~700 files only. After the pull has finished, many of the files which are present on my Google drive are missing from the pull. If I try 'drive pull Ebooks' again, I am told everything is up to date but it is not.

One of the files that is missing is called 'metdata.db'. If I then type 'drive pull Ebooks/metadata.db' it does actually see the file and pull it down for me. But then when I try 'drive pull Ebooks' again, it tells me that it wants to delete metadata.db, because it thinks it doesn't exist on Google Drive.

It seems like drive pull fails to handle folders where there are large numbers of files.

Please contact me if you would like more information.

bh4017 avatar Dec 27 '14 16:12 bh4017

Possible duplicate of https://github.com/rakyll/drive/issues/15.

odeke-em avatar Dec 27 '14 17:12 odeke-em

Yes that sounds similar, though in my case I was able to pull ~700 files (715 if I remember correctly). After that drive tells me there are no differences between local and remote, when in truth there is still another ~800 files to go.

It's a real shame as I really like this command-line utility. I'll keep an eye here to see if the issue is fixed.

Cheers.

bh4017 avatar Dec 27 '14 20:12 bh4017

I hear ye. Actually a PR to address this issue was started a couple of weeks ago take a look at https://github.com/rakyll/drive/pull/24. Good plan to keep your eye out for when it is complete and merged.

odeke-em avatar Dec 27 '14 20:12 odeke-em