Open KTibow opened 4 years ago
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.
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.
You can get by this by running an async upload on a different thread or using