GoogleCloudPlatform / GoogleCloudPlatform/gsutil

gsutil cp missing --parents

Open
#372 9 comments 17 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

gsutil cp does not offer the --parents flag.
for example, doing `gsutil cp gs://my-bucket/**/pom.xml .` will end up with only one file on disk rather than all of the pom.xml files in the bucket. I would like to have `cp` preserve the parents of each copied file as in `cp --parents` on GNU cp.

Achieving this functionality by copying one by one and specifying the destination from outside gsutil is possible but slow.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.