I've created a Team Drive called SchoolAdmins with a subfolder called NightlySync
/SchoolAdmins/NightlySync
I want to use GAM to put a file in /SchoolAdmins/NightlySync.
I've tried:
gam user gamadmin add drivefile localfile /home/gamadmin/logs/StudentsToAdd.csv parentname NightlySync
The results displayed are:
Searching for files with query: "mimeType = "application/vnd.google-apps.folder" and "me" in owners and title = "NightlySync""...
got 1 files...
Successfully uploaded gglStudentsToAdd.csv to Drive file ID 0B-oB2ZjMeRhXZDUzS0hBeEpRa1U
But, the folder is empty.
If I create a folder called NightlySync under My Drive (not Team Drives,) the file copies as expected into the folder.
Is there a trick to getting this to work with Team Drives?
Thanks