The criteria for object names is much less restrictive than the criteria for bucket names:
- An object’s name can contain any sequence of valid Unicode characters.
- An object’s name can’t contain any Carriage Return or Line Feed characters.
- Google recommends against using #, [, ], *, or ? in object names, as
gsutil
interprets these characters as wildcards.
For example, suppose that you create a bucket named gs://dummies-tfbook
. You can create an object in the bucket named gs://dummies-tfbook/data
and another object named gs://dummies-tfbook/data/images
. Cloud Storage won't recognize any relationship between these objects, but humans will understand that the objects form a virtual hierarchy.