Skip to content
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

Async uploads are blocking but async downloads are not #173

Open
KTibow opened this issue Mar 15, 2020 · 0 comments
Open

Async uploads are blocking but async downloads are not #173

KTibow opened this issue Mar 15, 2020 · 0 comments

Comments

@KTibow
Copy link

KTibow commented Mar 15, 2020

You can get by this by running an async upload on a different thread or using

import asyncio
# Make sure you've authenticated
def download(client, drivename, localname):
    loop = asyncio.get_event_loop()
    loop.run_until_complete(client.item(drive='me', path=drivename).download_async(localname))

download(client, "largefile.whatever", "downloadedfile.whatever")

but this is odd behavior that should probably be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant