GAM to copy folder structure only - and ignore all files

275 views
Skip to first unread message

Sundar Raman

unread,
Aug 18, 2022, 4:34:32 AM8/18/22
to GAM for Google Workspace
Hi all,
I can see that I can copy a drive folder using `copy drivefile <source-folder-id> recursive parentid <target-folder-id>`. Is there a way I can exclude just the files and keep only the folder structure. Additionally, is there a way I can exclude files or folders that match a pattern (or extension)?

For example, every so often I need to copy a full folder structure, but not the underlying files. I know i can delete the files after the fact, but figured there might be a way to reduce the post-processing work.

Thanks much!

Ross Scroggs

unread,
Aug 18, 2022, 10:44:35 AM8/18/22
to google-ap...@googlegroups.com
Sundar,

At the moment no, I'll investigate adding an option to do this.

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/017e8336-3fcc-457b-8a31-a09c28edb0b9n%40googlegroups.com.


--

Sundar Raman

unread,
Aug 18, 2022, 11:42:20 AM8/18/22
to google-ap...@googlegroups.com
Thanks much sir!

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/F7lq-ednDTk/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJkvRS9zHDWHepzfGimeDp-oeU_0yzHy3ePJcJW76ehD-7GbeQ%40mail.gmail.com.

Ross Scroggs

unread,
Aug 21, 2022, 2:38:28 PM8/21/22
to google-ap...@googlegroups.com

Sundar Raman

unread,
Aug 21, 2022, 3:06:27 PM8/21/22
to google-ap...@googlegroups.com
Thanks so much sir! This looks great!!

Reply all
Reply to author
Forward
0 new messages