Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. require "find"
  2. count = 0
  3. size = 0
  4. Find.find(path) do |f|
  5. if File.file?(f)
  6. count += 1
  7. size += File.size(f)
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement