Skip to content

Does not return all files when there are more than 460 files #4

@deltaray

Description

@deltaray

So recently while auditing a large google drive share, I noticed that there were files that I can view that are not being listed in the output from listFiles.py. Eventually I found this stackexchange question where other people appear to be having the same issue when trying to list more than 460 files:

http://stackoverflow.com/questions/33343671/limits-with-google-drive-api

I'm not sure where 460 comes from as I couldn't find it in the apiclient module code, but anyways this appears to be the limit even though I'm processing page tokens the way google says to do it and I set my maxresults to 1000 as Google says to do.

So I think in order to get around this I'll need to walk the tree of folders and list files for each one. If there is a folder with more than 460 files in it, then tough luck. I will probably change the listFiles.py syntax so that it can take a folder name or document ID and then work down from that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions