GoogleCloudPlatform / GoogleCloudPlatform/gsutil
gsutil cp reports OK but file never appears in the bucket
- Dominant language
- Python
- Stars
- 918
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
Seems like it depends if the cp command include './' for the src file
gsutil cp ./somefile gs://somebucket/somefile
Copying file://./somefile [Content-Type=application/octet-stream]...
/ [1 files][ 17.1 KiB/ 17.1 KiB]
Operation completed over 1 objects/17.1 KiB.
= Reported ok, but file not uploaded
gsutil cp somefile gs://somebucket/somefile
Copying file://somefile [Content-Type=application/octet-stream]...
/ [1 files][ 17.1 KiB/ 17.1 KiB]
Operation completed over 1 objects/17.1 KiB.
= Reported ok and file uploaded correctly
Contributor guide
Research direction
Start by reproducing the two gsutil cp commands from the issue against a test bucket, then compare the resulting bucket contents. No source file or test is named; done means the ./somefile form uploads the object successfully and regression coverage verifies both source-path forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100