'List more than 1000 objects in Google Cloud Bucket console ls

I'm trying to return a list of all files in a Google Cloud Storage bucket via console.

When I use

gsutil ls -r gs://<my_bucket>

It only returns ~1000 or so objects, despite there being ~16,000 objects in the bucket.

Anyone have any ideas of how to get around this 1000 objects(?) limit?

Just need a list of all objects in the bucket.



Solution 1:[1]

If following along at home the solution was to use Googles cloud shell editor and output the list as a file. The below code worked once in the full page editor (mainly to be able to access the output file).

gsutil ls -r gs://<bucket_name_path>/** > new_file.txt

Hopefully this helps anyone coming across a similar issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Will