sparse-carpet-63783
02/04/2022, 5:47 PMprehistoric-activity-61023
02/05/2022, 9:54 AMgcp.storage.BucketObject(
"empty-folder",
bucket=my_bucket_name,
name='example_folder/',
content='IT-DOES-NOT-MATTER',
)
content
field is required but it will be ignored in case object has trailing slash in name.
Just a reminder, GCS (and basically most of object storage solutions) uses a flat filesystem. That means, you don’t have to actually create empty folders in order to store things within them. You can directly upload file parent_folder/subfolder/myfile.txt
and it will “create” parent directories automatically (cause in fact, it’s just a long name with slashes and not a real tree-like structure).green-school-95910
02/07/2022, 11:12 AMgsutil rsync
somewhere including the empty folder if I'm not mistakensparse-carpet-63783
02/07/2022, 7:06 PM