You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From messages posted by a gsutil user on gs-discussion and gsutil-discuss:
I have a set of files such that:
python gsutil ls gs://mybucket/x*.gz
gs:// mybucket /xaa.gz
gs:// mybucket /xas.gz
gs:// mybucket /xat.gz
gs:// mybucket /xau.gz
gs:// mybucket /xav.gz
gs:// mybucket /xaw.gz
And I want to move those files to:
gs://mybucket/mysubfolder/
I would have thought the gsutil mv command would work, but I get the error:
"CommandException: Destination URI must name a directory, bucket, or bucket subdirectory for the multiple source form of the cp command."
The command I'm running is:
C:\gsutil>python gsutil mv gs://mybucket/x*.gz gs://mybucket/mysubfolder/
No amount of playing around with the command line seems to be helping unfortunately. I'm using gsutil 3.1 if that helps.
And in another message:
While I can upload files individually, I can't seem to specify uploading all the *.gz files.
Here are the commands I'm running (I'm running gsutil from Windows btw):
This is the command to upload 1 file (works fine, and resumable)
python gsutil -d -h "Content-Type: text/plain" cp file://F:\data\data_split\xaa.gz gs://mybucket/mysubdirectory/
I would have therefore thought the following would be the multiple file equivalent:
python gsutil -d -h "Content-Type: text/plain" cp file://F:\data\data_split*.gz gs://mybucket/mysubdirectory/
However, I get:
CommandException: Destination URI must name a directory, bucket, or bucket subdirectory for the multiple source form of the cp command.
The only way I can get it work as intend is by uploading into the bucket itself. This works correctly:
python gsutil -d -h "Content-Type: text/plain" cp file://F:\data\data_split*.gz gs://mybucket/
CommandException: Destination URI must name a directory, bucket, or bucket subdirectory for the multiple source form of the cp command.
while downloading to a directory. if I change the directory name, it works..
this local directory will not work /tmp/neuroglancer/drosophila_v0/affinitymap-aligned_z32/rs-unet-cremi-64cores/
this will work /tmp/neuroglancer/drosophila_v0/affinitymap-aligned_z32/
Original author: mfschwa...@google.com (April 25, 2012 15:19:59)
From messages posted by a gsutil user on gs-discussion and gsutil-discuss:
I have a set of files such that:
python gsutil ls gs://mybucket/x*.gz
gs:// mybucket /xaa.gz
gs:// mybucket /xas.gz
gs:// mybucket /xat.gz
gs:// mybucket /xau.gz
gs:// mybucket /xav.gz
gs:// mybucket /xaw.gz
And I want to move those files to:
gs://mybucket/mysubfolder/
I would have thought the gsutil mv command would work, but I get the error:
"CommandException: Destination URI must name a directory, bucket, or bucket subdirectory for the multiple source form of the cp command."
The command I'm running is:
C:\gsutil>python gsutil mv gs://mybucket/x*.gz gs://mybucket/mysubfolder/
No amount of playing around with the command line seems to be helping unfortunately. I'm using gsutil 3.1 if that helps.
And in another message:
While I can upload files individually, I can't seem to specify uploading all the *.gz files.
Here are the commands I'm running (I'm running gsutil from Windows btw):
This is the command to upload 1 file (works fine, and resumable)
python gsutil -d -h "Content-Type: text/plain" cp file://F:\data\data_split\xaa.gz gs://mybucket/mysubdirectory/
I would have therefore thought the following would be the multiple file equivalent:
python gsutil -d -h "Content-Type: text/plain" cp file://F:\data\data_split*.gz gs://mybucket/mysubdirectory/
However, I get:
CommandException: Destination URI must name a directory, bucket, or bucket subdirectory for the multiple source form of the cp command.
The only way I can get it work as intend is by uploading into the bucket itself. This works correctly:
python gsutil -d -h "Content-Type: text/plain" cp file://F:\data\data_split*.gz gs://mybucket/
Original issue: http://code.google.com/p/gsutil/issues/detail?id=93
The text was updated successfully, but these errors were encountered: