2
gsutil -m cp -R 'gs://[BUCKET]/' 'C:/Users/[USER]/[FOLDER]'

will display the following error

[Errno 22] invalid mode ('ab') or filename: u'C:\\Users\\[USER]\\[FOLDER]\\\\[BUCKET]\\[FILE].gstmp'

I've tried changing the '/'s to '//' to '\' and '\' with no results whatsoever

Pedro Díaz
  • 83
  • 1
  • 7

1 Answers1

3

So, after hours trying to find out this was happening.. it happened that the filenames had a character that can't be used in filenames in windows.. hope this helps if anybody else runs into this error.

Pedro Díaz
  • 83
  • 1
  • 7