-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file.GetContentFile: stream to disk, add callback #30
Conversation
- fixes #28 - related #20 - reference: https://developers.google.com/drive/api/v2/manage-downloads
https://travis-ci.com/github/iterative/PyDrive2/builds/163561690 fails because a test expects the BOM to be stripped even when there's an implicit |
@@ -34,6 +35,10 @@ def __init__(self, http_error): | |||
# Initialize args for backward compatibility | |||
super().__init__(http_error) | |||
|
|||
def GetField(self, field): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can simplify DVC code after release probably
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, on my post-merge list :)
Looks good! Fixing the tests sounds good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks cool! 😎 Let's fix the test and release the new version. We can simplify DVC a bit after this release.
* wip * gdrive: add progress Part of #2865 See #2865 (comment) * gdrive: move towards next pydrive2 release - depends on iterative/PyDrive2#30 * update to latest pydrive>=1.4.11 * avoid unneeded API call * progress: gdrive: ensure proper bar_format
GetContentFile
temporarily keeping the whole file in RAMcallback
for external progress monitoringremove_bom=False
. May be a breaking change to modify this test?)And the (
pydrive2
) docstrings did say:And again, it (
httplib2
) said:And the devs did shudder. There was wailing in the North and South. There was gnashing of teeth in the East and West.
And then one brave dev, in a quavering voice, spake thusly: