Google Drive - Inserting Parent Folder for a file adds Root as a parent as well -
i using https://developers.google.com/drive/v2/reference/parents/insert api update parent folder particular file.
example -
original folder - dest folder - b root folder - / file - a1 after submitting post request above endpoint, see following in parents section of file.
parents : [ a, b, / ]
is known issue ? how can avoid apart having delete 'root' folder manually ?
edit: information apis used.
steps
- use - drive/v2/files/%s/permissions adding permission
- use - drive/v2/files/%s/parents - inserting parent. set
"kind", "drive#parentreference" , "id", "destfolderid"in request
type of account - folder being inserted belongs 'super admin'
can't use comments due reputation, explain want little bit more? trying move file more adding new parent. check if root isn't in parent's array. use query , list files know what's going on more accurately. use built in list function in developers page faster access.
links:
Comments
Post a Comment