Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disappearing files.



(Other favourite evil file function: listFiles or whatever it's called. Returns null instead of empty array when there aren't any. Eeeeevil.)

Ooh, yes. That is nasty. Although, it actually only returns null if the folder doesn't exist - if it exists and is empty, it gives you an empty array. So in some way that could be considered "useful", although in practice it's basically just obnoxious. I have been bitten by that one, though, and now never trust its result (usually I just use my own function that wraps it and does the sensible thing).


--sam

Dave Watson




_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Disappearing files. (From: Greg Guerin <email@hidden>)
 >Re: Disappearing files. (From: sam <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.