ericyd / gdrive-copy

Web app to copy a Google Drive folder
https://script.google.com/macros/s/AKfycbxbGNGajrxv-HbX2sVY2OTu7yj9VvxlOMOeQblZFuq7rYm7uyo/exec
MIT License
1.58k stars 343 forks source link

Error Progress Complete At 461 Files #67

Closed reikarin closed 5 years ago

reikarin commented 5 years ago

Are you requesting a feature or reporting a bug?

reporting a bug

If reporting a bug, is there already an issue open for this same bug?

yes

What is the current behavior?

copying folder error, progress completed when reach 461 files

What is the expected behavior?

copying progress still running until quota limit reach

How would you reproduce the current behavior (if this is a bug)?

Specify your

johnmcdowell commented 5 years ago

I seem to repro this consistently as well. Exactly 461 files copies after copying two totally separate folders. The code marks the "Copy Log" complete, but it's not.

ericyd commented 5 years ago

I implemented a change that might or might not help with this issue. If either of you could try again and let me know the results I would very much appreciate it.

johnmcdowell commented 5 years ago

Sure. Unfortunately, it might have made it worse. I just tried copying a folder with 1,062 google docs, and it copied exactly 100 files, marked the Copy Log "complete," and said "Total Files Copied" was 101 (instead of the actual 100 out of 1,062).

I went back and checked and the previous incomplete copies actually copied 460 (unless you also include the Copy Log, which I wouldn't have expected).

Hope that helps.

ericyd commented 5 years ago

I appreciate the info. I'll revert this change soon and try to get to the bottom of this.

ericyd commented 5 years ago

Just merged a fix for this. Google Drive sometimes takes up to an hour to sync the latest version so please feel free to try after that time.