(I say “constant-memory”, but the implementation is recursive. Still, in *my* use case, the memory load does not grow.)
@boredzo I was asking since I know “du” doesn’t. It counts the number of blocks.
-
-
@mjtsai Just checked: totalsize reports total uncompressed size. -
@boredzo Cool. What about resource forks? - View other replies
-
@mjtsai …Dunno. I'm feeding it my ResEdit folder and it says 7,460, which does not add up. (1,312 + 3000 + 0 + 670,639) -
@boredzo Yeah, I’m pretty sure stat doesn’t work for that. But despite the documentation I don’t think NSURLTotalFileSizeKey does either. -
@mjtsai My temptation is to make a Core Services File Manager version.
-
-
@mjtsai % wc -c < foo/* 6184320 % du -sb foo 6184456foo % ./totalsize foo 6184320foo
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Petrifying Horror
Michael Tsai