gsutil: some directories with brackets don't upload

I’m getting a “CommandException: No URLs matched:” message when trying to upload a directory that has brackets in the name.

$ mkdir 'hello [foo]'
$ touch hello\ \[foo\]/bar
$ gsutil cp -r 'hello [foo]' gs://test5903495034959
CommandException: No URLs matched: hello [foo]
$ mv hello\ \[foo\] hello
$ gsutil cp -r 'hello' gs://test5903495034959
Copying file://hello/bar [Content-Type=application/octet-stream]...

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 2
  • Comments: 17 (4 by maintainers)

Most upvoted comments

FWIW, “gsutil du -s gs://bucket/” also fails to produce a sum if it contains a file containing a wildcard.