projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
5414: Merge branch 'master' into 5414-keep-service-hints
[arvados.git]
/
sdk
/
ruby
/
lib
/
arvados
/
keep.rb
diff --git
a/sdk/ruby/lib/arvados/keep.rb
b/sdk/ruby/lib/arvados/keep.rb
index ede40c3fc2b364f8f886166885fe9e8a59e61e29..e4f62083b0d5568d757d8ae05dc043170e10f6ca 100644
(file)
--- a/
sdk/ruby/lib/arvados/keep.rb
+++ b/
sdk/ruby/lib/arvados/keep.rb
@@
-191,6
+191,11
@@
module Keep
seen_files.size
end
+ def files_size
+ # Return the total size of all files in this manifest.
+ files.reduce(0) { |total, (_, _, size)| total + size }
+ end
+
def exact_file_count?(want_count)
files_count(want_count + 1) == want_count
end