We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0ea248 commit 5ef6e79Copy full SHA for 5ef6e79
1 file changed
api-putobject-snowball.go
@@ -48,6 +48,10 @@ type SnowballOptions struct {
48
// Compression will typically reduce memory and network usage,
49
// Compression can safely be enabled with MinIO hosts.
50
Compress bool
51
+
52
+ // SkipErrs if enabled will skip any errors while reading the
53
+ // object content while creating the snowball archive
54
+ SkipErrs bool
55
}
56
57
// SnowballObject contains information about a single object to be added to the snowball.
@@ -184,10 +188,16 @@ objectLoop:
184
188
n, err := io.Copy(t, obj.Content)
185
189
if err != nil {
186
190
closeObj()
191
+ if opts.SkipErrs {
192
+ continue
193
+ }
187
194
return err
195
196
if n != obj.Size {
197
198
199
200
201
return io.ErrUnexpectedEOF
202
203
0 commit comments