如何获取谷歌驱动器中的所有文件,谁没有父母? [英] How to get all files in google drive, who don't have parents?
本文介绍了如何获取谷歌驱动器中的所有文件,谁没有父母?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能获得所有文件,谁没有父母使用谷歌驱动器休息api查询?
Is it possible to get all files, who don't have parents using google drive rest api query?
推荐答案
没有查询来查找孤立文件。如果您正在查找用户拥有的文件,则需要在所有者中使用'me'查询来执行files.list(),并且字段值
files(id,parents),nextPageToken
然后在本地过滤掉没有父母的文件。
There's no query to find "orphaned" files. If you're looking for files that the user owns, you'd need to do files.list() with a query of 'me' in owners
and fields value of files(id,parents),nextPageToken
then locally filter down to files with no parents.
这篇关于如何获取谷歌驱动器中的所有文件,谁没有父母?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文