Open developomp opened 4 years ago
I wonder if that's even possible. Even the official Window$ Client works on single file basis whatever it does.
It's possible, but Google probably won't like it. They will probably throttle.
I don't think this is a good idea as even if Google didn't do anything on their end, Grive is set up to send 1 file at a time without a speed limit (unless you specify one), and Google accepts Google Drive files at a speed higher than most US ISPs allow for upload (I'm looking at you Comcast). Basically, for most people, Grive is going fast as it can and sending multiple files at once won't make a difference. It also is much more error-prone.
Well, we can actually create a queue of multiple files that user wants to send to google drive. Then we send the files one by one, with a delay between each file so that Google doesn't see it as wrong or fishy activity.
They are not going to see it as fishy if it's just your own account under OAuth with your own app. They will still throttle. https://developers.google.com/drive/api/v3/handle-errors#resolve_a_403_error_daily_limit_exceeded
It wouldn't be such a bad idea to implement checking for daily limit and avoiding going over.
Currently, grive appears to upload files one at a time and the next file in line has to wait until the previous one is uploaded. Make grive be able to upload multiple files at once and add a setting for how many files it can upload simultaneously (4 sounds like a reasonable default amount).