I am trying to copy a Drive folder tree, but I am running into problems with multiple parents of some of the sub-folders. I have looked at the "multiple parents" section of the wiki, but I don't really understand what the options (copytopfileparents, copytopfolderparents, copysubfileparents, copysubfolderparents) mean or which ones I should use.
The top-level source folder ("English") was owned by teacher2 and is now owned by teacher1. The folder structure is several levels deep. The sub-folders are each owned by one of several teachers (teacher1, teacher2, and others). Some of the folders and files have multiple parents. I want the destination folder ("English-copy") to be in the owner's MyDrive.
The command I have been working with is:
gam user teacher1 copy drivefile id 0B6Sxxx3TkE newfilename English-copy recursive duplicatefiles skip copytopfileparents all copytopfolderparents all
After copying many files, GAM stops with this error:
ERROR: 403: cannotAddParent - Increasing the number of parents is not allowed
The folder that contains the last files that were copied also contains folders owned by teacher2, and some of the folders probably have multiple parents.
What is the correct incantation to copy all of the files and folders?
Python 3.9.6 64-bit final
Windows 10 10.0.19042 SP0 Multiprocessor Free AMD64