Most viewed recipes tagged "sizeof" and "tree" but not "application"http://code.activestate.com/recipes/tags/sizeof-application+tree/views/2011-02-09T13:29:56-08:00ActiveState Code RecipesDirectory Size (Console) (Python)
2011-02-09T13:29:56-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577566-directory-size-console/
<p style="color: grey">
Python
recipe 577566
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/commandline/">commandline</a>, <a href="/recipes/tags/directory/">directory</a>, <a href="/recipes/tags/sizeof/">sizeof</a>, <a href="/recipes/tags/tree/">tree</a>).
</p>
<p>Have you ever wanted to find out how much room a particular directory was taking up on your hard drive? A roommate of mine in college was having trouble keeping track of where his hard drive space is going, so the following program provided a solution that allows a brief overview of a directory's size along with all of its children. A tree view is printed out in ASCII characters showing the relationship of each directory along with its size in a format easily readable to humans. The output can always be redirected to a text file if it needs to be saved for viewing later on.</p>