Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Directory size function: problem with iteration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Directory size function: problem with iteration



On Oct 27, 2005, at 7:03 PM, Daniel Jalkut wrote:

Hi Lawrence. As a quick test, maybe you could try a sample routine I posted to the list some time ago:

http://www.cocoabuilder.com/archive/message/cocoa/2005/5/20/136503

See if that exhibits the same problem or not.

My code is actually based on this routine (I cited it in the code). Thank you for posting it! Right now I'm trying to make it slightly more efficient and improve the functional interface by separating Carbon and Cocoa. I really appreciate your work.


Is it possible that your iterator is hitting a special file of some type? E.g. a symbolic link or something? Where the item fails in the iteration may be important.

This sounds possible, but the items it fails on are not special in any way I can see. When I traverse my home directory, it fails on / Users/ls/.lyx/packages.lst. When I traverse the root directory, it fails on /Applications/Address Book.app/Contents/Resources/da.lproj/ AddressBookHelp/gfx/disc03.jpg. The only thing these files have in common is that they are not visible to the user in the Finder except by special means.


Let me suggest that if you want people to look at your code to help you find a problem, you will get better results the easier you make it for them to do so. I hesitatingly downloaded your link, but it's not even in the form of a buildable Xcode project. If I can't reproduce the problem easily I'm not going to look at it. Ideally, you should isolate the problem enough that you can paste in a few lines of code with a good explanation of what's going on. People just don't have a lot of time to do a full review of your sources.

Sorry. Attached is an Xcode project. Thanks for the help.

Larry

Attachment: BKDirectorySize.zip
Description: Zip archive

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Directory size function: problem with iteration (From: Lawrence Sanbourne <email@hidden>)
 >Re: Directory size function: problem with iteration (From: Daniel Jalkut <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.