5 6 7
# File 'lib/ektoplayer/common.rb', line 5 def Dir.size(path) Dir.glob(File.join(path, '**', ?*)).map(&File.method(:size)).sum end