pathname: fix use of find on Ruby 1.8.

This commit is contained in:
Mike McQuaid 2015-12-30 08:23:57 +00:00
parent bb38d90bce
commit 482481d24c

View File

@ -28,7 +28,7 @@ module DiskUsageExtension
def compute_disk_usage
if self.directory?
@file_count, @disk_usage = [0, 0]
self.find.each do |f|
self.find do |f|
if !File.directory?(f) and !f.to_s.match(/\.DS_Store/)
@file_count += 1
@disk_usage += File.size(f)