GoogleCloudPlatform / GoogleCloudPlatform/gsutil
Cannot copy same file multiple times to Google Cloud Storage
- Dominant language
- Python
- Stars
- 918
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
When I try to copy the same file with the same file name, it only copies the file to the bucket the first time.
Example:
The first time the file is copied to the bucket successfully.
root@460f7a4537f1:/home#gsutil cp -L /var/log/log.log file.csv gs://bucketname/file.csv
Copying file://file.csv [Content-Type=text/csv]...
/ [1 files][ 65.6 KiB/ 65.6 KiB]
Operation completed over 1 objects/65.6 KiB.
The second time gsutil does nothing
root@460f7a4537f1:/home#gsutil cp -L /var/log/log.log file.csv gs://bucketname/file.csv
root@460f7a4537f1:/home#
Regards.
Manuel.
gsutil version: 5.5
Contributor guide
Research direction
Start by reproducing the repeated `gsutil cp -L` command against Google Cloud Storage using the issue's example and version 5.5. Trace the copy path that decides whether an existing destination is updated, then verify that a second copy completes and replaces the destination as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gcp, 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