【问题标题】:Google Drive API Files.List Query String - "not" operatorGoogle Drive API Files.List 查询字符串 - “非”运算符
【发布时间】:2012-07-15 19:31:43
【问题描述】:

类似于这个问题Google Drive API Files.List Query String,因为我想知道 setQ 方法的所有语法: FileList files = drive.files().list() .setQ("trashed=true") .setMaxResults (100) .execute();

特别是我想从查询中获取文件(不是文件夹)。

要获取文件夹,此查询有效:request.Q = "mimeType='application/vnd.google-apps.folder' and trashed=false "

我尝试过不同的组合,比如

request.Q = "not mimeType='application/vnd.google-apps.folder' and trashed=false "
request.Q = "mimeType!='application/vnd.google-apps.folder' and trashed=false "

有些运行但忽略不,有些只是崩溃。

有没有办法获取仅包含文件的列表?

【问题讨论】:

    标签: google-drive-api


    【解决方案1】:

    答案好像老了,目前googlde drive api accept != operator。

    希望对你有帮助, 阿尔瓦罗。

    【讨论】:

      【解决方案2】:

      目前在 Drive API 查询语言中没有否定,抱歉!这是我们应该考虑添加的一个很棒的功能。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-03-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-11-06
        相关资源
        最近更新 更多