Skip to content
Snippets Groups Projects
Commit 482481d2 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

pathname: fix use of `find` on Ruby 1.8.

parent bb38d90b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment