in reply to Re^2: Fastest way to calculate directory size in linux
in thread Fastest way to calculate directory size in linux

File::Find has to visit all files as well... And while I don't claim to have any Windows related knowledge, I do know that on Unix, you'll have to visit all files (or rather, their inodes) to calculate the "size of the directory".
  • Comment on Re^3: Fastest way to calculate directory size in linux

Replies are listed 'Best First'.
Re^4: Fastest way to calculate directory size in linux
by tobyink (Canon) on Feb 01, 2012 at 12:26 UTC

    Indeed, if there was a faster, portable way to calculate the space taken up by a directory, I'm sure that the GNU folk would have coded "du" to use the faster method.