Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "find"
- count = 0
- size = 0
- Find.find(path) do |f|
- if File.file?(f)
- count += 1
- size += File.size(f)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement