I have a GCS bucket containing some files in the path
gs://main-bucket/sub-directory-bucket/object1.gz
I would like to programmatically check if the sub-directory bucket contains one specific file. I would like to do this using gsutil.
How could this be done?
You can use the gsutil stat command.