Using gsutil in a script a need to upload a file and create all its parents.
Here the (ugly) only solution I found
gsutil cp -r ./p0/p1/p2/my_file gs://my_bucket/p0/p1/p2
I'm looking for
gsutil cp -? ./p0/p1/p2/my_file gs://my_bucket/
To have /p0/p1/p2 structur created in gs bucket.
cp
command that you're trying to emulate with gsutil? - jterrace