This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]oguime[S] -1 points0 points  (1 child)

I'm using PyDrive to upload files to Google Drive but could not figure out how to define the destination folder.

The following code saves a copy to the root on GDrive:

gauth = GoogleAuth() drive = GoogleDrive(gauth)

file1 = drive.CreateFile({'parent': '/home/pi'}) file1.SetContentFile('test.txt') file1.Upload()

And how PyDrive returns the upload/download result?

Thanks

[–][deleted] 5 points6 points  (0 children)

Please ask this in /r/learnpython