0

I'm using the Google Drive API to copy a form, among other files, from account A to a parent folder on account B. The form is successfully copied to the parent folder but a second copy of the form, named "Copy of [form name]", is left in the root folder of the destination account. I am copying all file types, but this seems to happen only with forms, though not every form. This is happening with the Python library in my own script and also, less predictably, through the UI at https://developers.google.com/drive/v2/reference/files/copy.

This issue is mentioned in the answer to Copy file into a specific parent folder with Google Drive API?, but there it is not limited to forms apparently.

Can anyone explain or tell how to prevent the unwanted copy on the root?

1
  • My script copies a list of files from one account to another. It seems that the number of files (any type) in the list may influence this behavior. It happens with a list of 30 files but not a list of 15.
    – edhillis
    Oct 15, 2014 at 22:59

1 Answer 1

0

This happens when copying a Google Sheet with a form attached.

If you copy the sheet you will find a new form called "Copy of [form name]" in the root folder of your drive (which obviously should be in the target folder and should keep the original name instead...)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.