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?