Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Calculate the Size of a Folder/Directory using .NET 4.0
(opens in new tab)
(devcurry.com)
13 points
johnastuntz
15y ago
4 comments
Save
Share
4 comments
4 comments · 1 top-level
top
newest
oldest
mahmud
15y ago
· 3 in thread
Why is this here again? Some kind of advanced "Directory Enumerator" tech that we haven't heard of?
du -h | grep -v '/' | gawk '{print $1}'
johkra
15y ago
Mh, I always use
du -sh
, are there any reasons (compatibility?) to grep the output instead?
mahmud
15y ago
with gawk in the pipline, you can stream the results over fiber to a load-balanced cluster of WEDU (Windows Enterprise Disk Usage) appliances.
cottsak
15y ago
agreed! hn is not for Hello World and this sure qualifies.
j
/
k
navigate · click thread line to collapse