We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a6d259 commit f8baed5Copy full SHA for f8baed5
coreiface/options/unixfs.go
@@ -39,7 +39,8 @@ type UnixfsAddSettings struct {
39
}
40
41
type UnixfsLsSettings struct {
42
- ResolveChildren bool
+ ResolveChildren bool
43
+ UseCumulativeSize bool
44
45
46
type UnixfsAddOption func(*UnixfsAddSettings) error
@@ -283,3 +284,10 @@ func (unixfsOpts) ResolveChildren(resolve bool) UnixfsLsOption {
283
284
return nil
285
286
287
+
288
+func (unixfsOpts) UseCumulativeSize(use bool) UnixfsLsOption {
289
+ return func(settings *UnixfsLsSettings) error {
290
+ settings.UseCumulativeSize = use
291
+ return nil
292
+ }
293
+}
0 commit comments