Skip to content

Downloaded file with drive api can't be found #998

@tianchao-haohan

Description

@tianchao-haohan

One more questions:
I tested the download scenario with the service account. (https://developers.google.com/drive/api/v3/manage-downloads)

file_id_download = "1GiewAJc460ccEX-ScDybp0rkLnsD8q5W"
request = service.files().get_media(fileId=file_id_download)
fh = io.BytesIO()
downloader = MediaIoBaseDownload(fh, request)
done = False
while done is False:
status, done = downloader.next_chunk()
print "Download %d%%." % int(status.progress() * 100)

And scripts returns:
python sa_demo.py
Download 100%.

But I can't find the download file in my local. Could you please give me some guidelines on that?

Metadata

Metadata

Assignees

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions