Indradip Halder
Hello! Good on you for trying things out and trying to make sense of it.
In this case, I think what’s going on is that *
is telling gsutil
to do a list (ls
) on each of the objects that match that level of the hierarchy–and since one of them is a folder (it ends with a slash), it lists its contents. But try out putting in another level of hierarchy–does it show the contents of that level, too?
On the other hand, **
tells gsutil
to show all of the objects under that folder but in a "flat" way–not showing all of the directory structure. And passing -r
tells it to keep recursing into all subfolders.
Check out this gsutil ls
documentation page for all the details. 🙂
Mattias