Problem downloading user drive files

255 views
Skip to first unread message

ChrisW

unread,
Oct 30, 2014, 12:07:10 PM10/30/14
to google-ap...@googlegroups.com
Hi,

I'm having a problem when trying to download user drive files, as a test I'm trying some of my own.

First of all I'm grabbing a list of files:

gam user myusername show filelist id

where myusername is... my user name :-)

That works fine and I get an output like...

 got a million and one files for myusername@sheffield.ac.uk...
Owner,title,id,alternateLink
myusername@sheffield
.ac.uk,demand-driven-digitsation,1I1rwabcdefghixjUOX8CR7uuaDYaeUDuJMcs,https://docs.google.com/a/sheffield.ac.uk/document/d/1I1rwabcdefghixjUOX8CR7uuaDYaeUDuJMcs

I then run

> gam user myusername get drivefile id 1I1rwabcdefghixjUOX8CR7uuaDYaeUDuJMcs
Traceback (most recent call last):
 
File "gam.py", line 7614, in <module>
 
File "gam.py", line 2223, in downloadDriveFile
NameError: global name 'string' is not defined


I've also tried:

>gam user myusername get drivefile query "'me' in owners" format microsoft
Traceback (most recent call last):
 
File "gam.py", line 7614, in <module>
 
File "gam.py", line 2223, in downloadDriveFile
NameError: global name 'string' is not defined

Thanks in advance
Chris

Gustavo Aristi

unread,
Dec 31, 2014, 1:17:52 PM12/31/14
to google-ap...@googlegroups.com
Are you adding the @yourdomain.com to the username?


FYI when you run that command successfully, all the files will end up all mixed up in the same folder, most likely the GAM folder which will mix user files with the GAM files.

If you want to avoid this, use: targetfolder "c:\TEST"  (or any path you want).
Reply all
Reply to author
Forward
0 new messages