Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How do I force "Get Info" to update folder size?

How do I force "Get Info" to update folder size?
Thread Tools
Forum Regular
Join Date: Oct 2000
Status: Offline
Reply With Quote
Nov 20, 2003, 04:38 PM
 
This has been a problem with OS X for as long as I can remember. Still not fixed in Panther.

A simple example:

If I have a folder containing 3 files, which are 1GB each and do "Get Info" it will show the folder size to be 3GB.

Now, if I delete one of those files, so that 2GB is left in the folder and do "Get Info" on the folder again, it will still say 3GB.

This drives me nuts!!!

I have tried closing windows, re-indexing the folder, moving the folder, and it still shows the wrong size information.

Is there any way to force it to look at the folder again to determine what size files it contains? The finder seems really bad at updating file status and information... come on Apple, it's 2003! Get with the program.
     
Mac Elite
Join Date: Oct 2000
Location: Macfreak7
Status: Offline
Reply With Quote
Nov 20, 2003, 04:44 PM
 
I just tried this with two files. I deleted one, and then did a get info for the original folder and it shows the correct size before and after.

Want to elaborate some more?
     
Forum Regular
Join Date: Oct 2000
Status: Offline
Reply With Quote
Nov 20, 2003, 04:56 PM
 
Originally posted by Macfreak7:
I just tried this with two files. I deleted one, and then did a get info for the original folder and it shows the correct size before and after.

Want to elaborate some more?
I haven't been able to nail it down. It doesn't seem to happen all the time, but it happens a lot. I've tried repairing permissions, quitting all applications... the only way I can get it to show correct info is if I restart... because it seems like for whatever reason, the Finder is caching the info, and not going back to update it when the folder has changed.

*sigh*

If only there was a "refresh" button like in Windows.
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 20, 2003, 05:38 PM
 
Originally posted by nebben123:
If only there was a "refresh" button like in Windows.
Use the Terminal to check was Mr. Unix says next time the Finder acts up.

Type (with a space after):
du -h

Then drag your folder to the Terminal window and hit enter.
(Last edited by [APi]TheMan; Nov 20, 2003 at 05:45 PM. )
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Nov 20, 2003, 06:11 PM
 
Originally posted by [APi]TheMan:
Use the Terminal to check was Mr. Unix says next time the Finder acts up.

Type (with a space after):
du -h

Then drag your folder to the Terminal window and hit enter.
I think you mean du -H (that is, capital H). -h isn't a legal option for du.

Also, du -H displays the number of 512-byte blocks a file occupies. Most people are used to thinking in kilobytes, megabytes and gigabytes, so seeing that a 2 MB file has a size of 4096 might confuse some people.
(Last edited by Chuckit; Nov 20, 2003 at 06:17 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Fresh-Faced Recruit
Join Date: Oct 2003
Status: Offline
Reply With Quote
Nov 20, 2003, 06:26 PM
 
Yep, the prefered way for some is:

du -ks .

you don't have to look at a bunch of files scroll by and you get a nice # after it goes through the director(ies).
     
Mac Elite
Join Date: Nov 2001
Location: Trafalmadore
Status: Offline
Reply With Quote
Nov 20, 2003, 06:36 PM
 
Originally posted by Chuckit:
I think you mean du -H (that is, capital H). -h isn't a legal option for du.
from man pages

usage: du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k] [-x] [-I mask] [file ...]

-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
Megabyte, Gigabyte, Terabyte and Petabyte

I think I see a -h in there. Works for me.
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 20, 2003, 06:42 PM
 
Originally posted by Chuckit:
I think you mean du -H (that is, capital H). -h isn't a legal option for du.

Also, du -H displays the number of 512-byte blocks a file occupies. Most people are used to thinking in kilobytes, megabytes and gigabytes, so seeing that a 2 MB file has a size of 4096 might confuse some people.
Oh contraire:
Code:
[aorth@ssku225-100-c: ~]$ du -h /Users/aorth/Desktop/woohoo 1.9G /Users/aorth/Desktop/woohoo
But I forgot that I have coreutils 5.0 installed so my du is an enhanced version. Oops.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Mac Elite
Join Date: Nov 2001
Location: Trafalmadore
Status: Offline
Reply With Quote
Nov 20, 2003, 07:15 PM
 
Originally posted by [APi]TheMan:
Oh contraire:
Code:
[aorth@ssku225-100-c: ~]$ du -h /Users/aorth/Desktop/woohoo 1.9G /Users/aorth/Desktop/woohoo
But I forgot that I have coreutils 5.0 installed so my du is an enhanced version. Oops.
Ok, so I get the same results. coreutils 5.0? I didn't install that. Forgive my oldtimers disease, is that part of CHUD?

When I do a Get Info, and move contents out of the folder, the Get Info window does not update. I see another one of those ' I wish the Finder was polling' thread coming. One more example of where it can be used.

It would be really useful here. However, that is not the original poster's problem. It works on all of my Macs. It is not Panther.

What does suck is how all of these damned animated GIFs slows down Safari when editing a post.
(Last edited by SMacTech; Nov 20, 2003 at 07:32 PM. )
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 21, 2003, 11:20 AM
 
Originally posted by SMacTech:
Ok, so I get the same results. coreutils 5.0? I didn't install that. Forgive my oldtimers disease, is that part of CHUD?

What does suck is how all of these damned animated GIFs slows down Safari when editing a post.
I was under the impression that coreutils 5.0 gave that enhanced functionality. I was trying to get a more precise answer for you guys but it appears that du has no --version, -v, or anything that gives information on the version. Not even the man page. The coreutils version of ls outputs: "ls (coreutils) 5.0"

I think I was misunderstanding what coreutils' du added.

I don't know if coreutils is part of CHUD.
Originally posted by SMacTech:
What does suck is how all of these damned animated GIFs slows down Safari when editing a post.
Agreed. I was just noticing that.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Professional Poster
Join Date: Dec 2002
Location: Partying down with the Ewoks, after I nuked the Death Star!
Status: Offline
Reply With Quote
Nov 21, 2003, 11:33 AM
 
Try it with an inspector window in the Finder and see if it still happens.

"Hello, what have we here?
     
Mac Enthusiast
Join Date: Jun 2000
Location: New Jersey, USA
Status: Offline
Reply With Quote
Nov 21, 2003, 02:06 PM
 
Interesting, the inspector window seems to be much more responsive. Good to know; I've also had the non-updating Get Info window problem.

Even more interesting, when the Inspector window is open, it will cause the Get Info window to stay updated as well.

This does not seem to solve the little problem I've had, though, where I'm trying to monitor a file that's being transferred onto my machine. There doesn't seem to be anything, Inspector included, that'll update in real time. At least, with Inspector, I can select a different file, then go back to the original, and get a new set of values. The alternative is the command line.

On the downside, I've just found that the Inspector is flaky. Sometimes it seems to go away and won't come back, although it will eventually reappear unexpectedly. Whatever.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:43 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2