lib/zold/tree_wallets.rb in zold-0.17.10 vs lib/zold/tree_wallets.rb in zold-0.18.0
- old
+ new
@@ -63,7 +63,11 @@
raise 'Id must be of type Id' unless id.is_a?(Id)
yield Wallet.new(
File.join(path, (id.to_s.split('', 5).take(4) + [id.to_s]).join('/') + Wallet::EXT)
)
end
+
+ def count
+ `find . -name "*.z" | wc -l`.strip.to_i
+ end
end
end