|
|
Create HTML disk usage trees from du output
This is a really nice idea -- I was thinking of writing something similar myself. There's a bug somewhere, though. It fails if it runs across a file larger than 9999999 kB. To reproduce it, put this in a file called duk_test.txt:
Create HTML disk usage trees from du output
My mistake -- it's actually only the last entry that causes problems. It's not the size of the numbers, it's the fact that the path is just '/'. I still don't know exactly what goes wrong.
Workaround for bug
I fiddled with this a bit when it was posted and just now figured out the problem when doing some cross-platform disk trees. duHTMLtree does not like when the last entry ends with a /.
So when you call du do not end your argument with a trailing /. (du -k /Volumes/Foobar is good, du -k /Volumes/Foobar/ is not. Or post-process your du output to remove the last / on the last line of output. The case in the above post appears to work if the last line is simply the size number followed by a tab (i.e. no path). -m |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|