parameter for recursive

8 views
Skip to first unread message

KNM Zeder

unread,
Jan 17, 2022, 3:30:40 PMJan 17
to GAM for Google Workspace
Hello,

is there a parameter for doing things for all folders and sub folders
(recursive)?

And: How I can find the answer in the wiki? I can't find a search field...

Thanks,
Micha

--
--

Mailadresse nur für die interne Kommunikation in der Wichern-Schule.

Bitte immer statt Namen die Pseudonyme verwenden.

Ross Scroggs

unread,
Jan 17, 2022, 3:33:50 PMJan 17
to google-ap...@googlegroups.com
Micha,

Define "doing things".

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/c93572a5-e942-2ecb-5df6-8012f2d1bd4c%40wichern-intern.de.


--

Peter Smulders

unread,
Jan 21, 2022, 9:01:16 AMJan 21
to GAM for Google Workspace
I think what you mean is "do stuff with files (selecting, modifying) from a certain folder, down into all the folders within folders underneath". What you are looking for in that case, is a 'depth' parameter. Most (if not all) operations where this is relevant have such a parameter.

depth 0 would mean "only do whatever in the folder you specify; i.e. do not traverse into deeper folders.
depth 1 would mean "process current folder and 1 below but no further"

Leaving off this parameter typically defaults to unlimited depth, i.e. go deeper into branches of folders until there is none deeper to go into.

(NB: be aware that "recursive" means something more and sometimes scary to programmers, where you most likely only mean the more mathematical sense of "deeper into a hierarchy until a certain point and/or end")

hth -- Peter
Reply all
Reply to author
Forward
0 new messages