I wish to copy all files except a certain directory or directories (or files) from my GCS bucket to my local directory. Is there anyway I can do the same?
For example:
My GCS bucket named so-bucket
has three folders dir1
, dir2
, dir3
, file1
and file2
. I want to copy all the files and directories except dir3
from the bucket to my local directory.
Usually I would do gsutil -m cp -r gs://so-bucket/* .
and then delete the dir3
folder.