Skip to content

Instantly share code, notes, and snippets.

Created September 11, 2013 11:58
Show Gist options
  • Save anonymous/6522592 to your computer and use it in GitHub Desktop.
Save anonymous/6522592 to your computer and use it in GitHub Desktop.
dirsize =0
Find.find("#{dir}") do |f| dirsize += File.stat(f).size end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment