Peter O'Gorman wrote: > Tommy Nordgren wrote: >> On Sep 21, 2008, at 6:36 AM, Michael Ash wrote: >> >>> On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren >>> <[EMAIL PROTECTED]> wrote: >>>> Use NSTask with the command line find -x / -name '*.app'
Dunno how I missed the -x, does not matter though, find -x / on a large filesystem with many files will take too long. Peter >>>> Do this on a separate thread, and cache the result. >>> I highly recommend against this approach. One problem is that it will >>> fail badly if any of the returned paths contain the \n character, >> Not true. With the given command line, find will return absolute paths. >> So this anomaly is easily detected when parsing find output > > Don't do find /, please! It could end up looking through every directory > entry on a remote petabyte filesystem. Even if you restrict it to > "local" storage, you could be going to the network for iSCSI devices, > and if you avoid that, some people have multi-terabyte filesystems with > a lot of directory entries, they will be disappointed in any software > that does a find /. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]