You should be able to display an existing DU dump;  think xdu or xdiskusage.<p>That automatically buys you features like one FS, yes or no counting hard links, soft links, all sorts of exclusion nuances...<p>Your neat feature is a display; don&#x27;t hobble it by strapping it to a slapdash scanner.