John Joyce
7/5/2008 8:15:00 PM
On Jul 5, 2008, at 1:16 PM, Seebs wrote:
> On 2008-07-04, Clement Ow <clement.ow@asia.bnpparibas.com> wrote:
>> I have options that has nonrecursive requirements.. There isnt a
>> direct
>> method at all that calculates DIR size? Hmmmm, I'm using Windows XP
>> Pro,
>> so dont suppose the Unix command would work. But, If i use Windows
>> command, would it probable then?
>
> There is no non-recursive solution. There are solutions that put the
> recursion in another application, but that's it.
>
To explain it a little further... technically, even the system is
doing some recursion here when it shows you a folder size.
Directories don't really have any size to speak of since they are
really just abstract ways to organize data. Doing the recursion is a
good idea. It gives you a chance to get a more accurate result.
Sometimes the system call may be faster though depending on just how
many files are *in* a directory. The system may have some meta data
available already.