The only way to do what you're talking about is to list the bucket and filter the results on your local machine, e.g.,
gsutil ls gs://mybucket/** | grep -v gs://my_bucket/my_prefix
Frage
I want to list files that do not start with a certain prefix. I can list them fine, like this:
gsutil ls gs://my_bucket/my_prefix*
How do I do the inverse of that?
Lösung
The only way to do what you're talking about is to list the bucket and filter the results on your local machine, e.g.,
gsutil ls gs://mybucket/** | grep -v gs://my_bucket/my_prefix