【发布时间】:2013-01-03 03:33:45
【问题描述】:
如何使用 Google Drive SDK API 将文件从根目录移动到文件夹?
我试过了,但它从来没有用过!
1) 将文件 id 插入文件夹。
方法: https://developers.google.com/drive/v2/reference/children/insert
结果: 文件可以插入文件夹,但是文件也显示在根目录中。
2) 从父级中删除文件 id。
方法: https://developers.google.com/drive/v2/reference/parents/delete
结果: 奇怪的结果。它应该删除父文件,但这会删除文件夹中的子文件。
有什么帮助吗?
【问题讨论】:
标签: google-drive-api