Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Workaround for bug' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Workaround for bug
Authored by: MartySells on Oct 07, '04 04:21:46AM
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

[ Reply to This | # ]