-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storage/transfermanager): add option to StripPrefix on directory download #10894
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change LGTM, just had one question in the test.
@@ -100,6 +101,7 @@ func TestIntegration_DownloadDirectory(t *testing.T) { | |||
if err := d.DownloadDirectory(ctx, &DownloadDirectoryInput{ | |||
Bucket: tb.bucket, | |||
LocalDirectory: localDir, | |||
StripPrefix: "dir/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you know that dir/
is part of the object name to test removal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind!
google-cloud-go/storage/transfermanager/integration_test.go
Lines 1000 to 1003 in 06fe327
// Create initializes the downloadTestBucket, creating a bucket and populating | |
// objects in it. All objects are of the same size but with different contents | |
// and can be mapped to their respective crc32c hash in contentHashes. | |
func (tb *downloadTestBucket) Create(prefix string) error { |
No description provided.