Closed stephengale801 closed 3 years ago
ross.scroggs@gmail.com
On Feb 16, 2021, at 4:51 PM, stephengale801 notifications@github.com wrote:
When using a Shared Drive's ID as the drive file selector for a Filetree list, instead of providing the Shared Drive's name, the placeholder "Drive" is returned as the name of the -1th folder.
Example output (line 1 of the data, depth of -1):
User,index,depth,title,id,fileSize,mimeType,parents 23demostudent1@anexampleschool.com,1,-1,Drive,0AJ2h_N-N_JazUk9PVA,,application/vnd.google-apps.folder, 23demostudent1@anexampleschool.com,2,0, Blue grey resume.dotx,195I3L-CqKqk4e8nJiMUU1dSOGTJygAKb,130462,application/vnd.openxmlformats-officedocument.wordprocessingml.template,0AJ2h_N-N_JazUk9PVA The output of gam print teamdrives lists the name of the Share Drive (removed unnecessary columns):
User,id,name,role 19sally.student@anexampleschool.com,0AJ2h_N-N_JazUk9PVA,CHAT GROUP!!! :) :) :),fileOrganizer Desired outcome: See the name of the Shared Drive which Drive Files are stored in with their file details such as ID, Mimetype, Size, etc.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/125, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6H42ZWNHCYPBISVY3S7MHK7ANCNFSM4XXNIPZQ.
Try: gam
-- ross.scroggs@gmail.com
On Feb 16, 2021, at 4:51 PM, stephengale801 notifications@github.com wrote:
When using a Shared Drive's ID as the drive file selector for a Filetree list, instead of providing the Shared Drive's name, the placeholder "Drive" is returned as the name of the -1th folder.
Example output (line 1 of the data, depth of -1):
User,index,depth,title,id,fileSize,mimeType,parents 23demostudent1@anexampleschool.com,1,-1,Drive,0AJ2h_N-N_JazUk9PVA,,application/vnd.google-apps.folder, 23demostudent1@anexampleschool.com,2,0, Blue grey resume.dotx,195I3L-CqKqk4e8nJiMUU1dSOGTJygAKb,130462,application/vnd.openxmlformats-officedocument.wordprocessingml.template,0AJ2h_N-N_JazUk9PVA The output of gam print teamdrives lists the name of the Share Drive (removed unnecessary columns):
User,id,name,role 19sally.student@anexampleschool.com,0AJ2h_N-N_JazUk9PVA,CHAT GROUP!!! :) :) :),fileOrganizer Desired outcome: See the name of the Shared Drive which Drive Files are stored in with their file details such as ID, Mimetype, Size, etc.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/125, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6H42ZWNHCYPBISVY3S7MHK7ANCNFSM4XXNIPZQ.
Why are you using print filetree instead of print filelist? Are you using the depth information?
ross.scroggs@gmail.com
On Feb 16, 2021, at 4:51 PM, stephengale801 notifications@github.com wrote:
When using a Shared Drive's ID as the drive file selector for a Filetree list, instead of providing the Shared Drive's name, the placeholder "Drive" is returned as the name of the -1th folder.
Example output (line 1 of the data, depth of -1):
User,index,depth,title,id,fileSize,mimeType,parents 23demostudent1@anexampleschool.com,1,-1,Drive,0AJ2h_N-N_JazUk9PVA,,application/vnd.google-apps.folder, 23demostudent1@anexampleschool.com,2,0, Blue grey resume.dotx,195I3L-CqKqk4e8nJiMUU1dSOGTJygAKb,130462,application/vnd.openxmlformats-officedocument.wordprocessingml.template,0AJ2h_N-N_JazUk9PVA The output of gam print teamdrives lists the name of the Share Drive (removed unnecessary columns):
User,id,name,role 19sally.student@anexampleschool.com,0AJ2h_N-N_JazUk9PVA,CHAT GROUP!!! :) :) :),fileOrganizer Desired outcome: See the name of the Shared Drive which Drive Files are stored in with their file details such as ID, Mimetype, Size, etc.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/125, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6H42ZWNHCYPBISVY3S7MHK7ANCNFSM4XXNIPZQ.
The command I used was: gam user 23demostudent1@anexampleschool.com print filetree select id 0AJ2h_N-N_JazUk9PVA depth -1
I will test with teamdriveid
instead of just id.
The main intent is to be able to see how much space is being used by Shared Drives individually. Unfortunately, unlike normal file systems where the space contained within a folder is easily visible by looking at the folder, Drive (and Shared Drives by extension) you have to sum together the content.
Ideally, the gam print teamdrives
would include the summed file size for all team drives, but I recognize that's not included in the API's output.
Using teamdriveid
in place of id
did not change the output. The CSV output still lists the name of the Shared Drives as "Drive" instead of the Shared Drive's actual name "CHAT GROUP!!! :) :) :)".
The complete command which I am using is:
gam print teamdrives | gam csv - gam user ~User print filetree select teamdriveid ~id depth -1
Send me a Meet/Zoom invitation; I'm available now or you can schedule for later.
On Wed, Feb 17, 2021 at 6:47 AM stephengale801 notifications@github.com wrote:
Using 'teamdriveidin place ofid` did not change the output. The CSV output still lists the name of the Shared Drives as "Drive" instead of the Shared Drive's actual name "CHAT GROUP!!! :) :) :)".
The complete command which I am using is: gam print teamdrives | gam csv - gam user ~User print filetree select teamdriveid ~id depth -1
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/125#issuecomment-780605627, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLYYVCID4IHEUJSOPO3S7PJIFANCNFSM4XXNIPZQ .
-- Ross Scroggs ross.scroggs@gmail.com
When using a Shared Drive's ID as the drive file selector for a Filetree list, instead of providing the Shared Drive's name, the placeholder "Drive" is returned as the name of the -1th folder.
Example output (line 1 of the data, depth of -1):
The output of
gam print teamdrives
lists the name of the Share Drive (removed unnecessary columns):Desired outcome: See the name of the Shared Drive which Drive Files are stored in with their file details such as ID, Mimetype, Size, etc.