Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Fastest way to calculate directory size in linux

by JavaFan (Canon)
on Feb 01, 2012 at 11:55 UTC ( #951196=note: print w/ replies, xml ) Need Help??


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 (Abbot) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2015-07-28 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls