× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Are you sure about that?

I'd guess that what you are probably after is amount of space used by the 
objects in a directory.

The disk space used by the directory itself is just the amount of space used 
for the list of objects in the directory and certain attributes (depending on 
what FS you are talking about.

Though the directory is thought of as an objects container....it really doesn't 
contain the objects themselves.  Unless the FS implementation tracks the total 
size of objects in a given directory and all it's subdirectories (and I don't 
know of such a FS), you'll have to walk the tree.

Windows Explorer walks the tree, you can see that happening when you right 
click on, for example, the \WINDOWS directory.


HTH,

Charles Wilt
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
 

> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx
> [mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Bill Meecham
> Sent: Friday, May 06, 2005 12:25 PM
> To: Midrange Systems Technical Discussion
> Subject: Re: Windows vs stat() Directory Size
> 
> 
> Hey Scott,
> 
> What I'm after is the disk space that the directory is using. 
>  This is for resource usage and IFS space being used.  I 
> think allocated space is more like what I need.  Otherwise I 
> would have to read through the tree at all levels for the top 
> directory value...right?  
> That would take a lot of time unless I stuck to specific directories.
> 
> Your thoughts?
> 
> thanks,
> bill
>   ----- Original Message ----- 
>   From: Scott Klement 
>   To: Midrange Systems Technical Discussion 
>   Sent: Friday, May 06, 2005 12:16 PM
>   Subject: Re: Windows vs stat() Directory Size
> 
> 
>   Hi Bill,
> 
>   Do you mean the size of a directory?  Or do you mean the 
> size of the 
>   objects in the directory?
> -- 
> This is the Midrange Systems Technical Discussion 
> (MIDRANGE-L) mailing list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
> 
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.