Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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
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 perusing the Monastery: (10)
As of 2014-12-21 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls