DriveFolder.listChildren() not showing all its children

前端 未结 2 1953
名媛妹妹
名媛妹妹 2021-01-19 17:22

I am making an app which works with google drive.

I need to get a list of ALL files inside a folder, but it seems that it isnt possible: when I call listFiles method

2条回答
  •  北海茫月
    2021-01-19 17:50

    I've tried this approach and I've also found that not all files are returned. Unfortunately, this behaviour is intentional =(

    I quote from the documentation:

    "The Google Drive Android API currently only supports drive.file and drive.appfolder"

    drive.file (Drive.SCOPE_FILE) means: "Per-file access to files created or opened by the app"

    "This means that only files which a user has opened or created with your application can be matched by a query"

    See:

    https://developers.google.com/drive/android/auth

    https://developers.google.com/drive/android/queries

提交回复
热议问题