What he's doing there might give you nightmares.
Raymond Chen blogs about the simple act of getting the size of a directory, not so simple after all, if you take into account all sorts of obscure stuff like reprase points, hard links, sparse files, compressed files and file streams.
"CCITT" -- Can't Conceive Intelligent Thoughts Today
"Yes, it's tough, but not as tough as doing comedy." -- Final words of Edmund Gwenn, actor, d. September 6, 1959 (When asked if he thought dying was tough.)