• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Looking for help scanning entire drives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for help scanning entire drives


  • Subject: Re: Looking for help scanning entire drives
  • From: Laurent Daudelin <email@hidden>
  • Date: Wed, 23 Feb 2011 08:53:02 -0800

On Feb 23, 2011, at 08:43, Charles Srstka wrote:

> On Feb 23, 2011, at 5:46 AM, Andreas Grosam wrote:
>
>>
>> On Feb 23, 2011, at 12:37 PM, Andreas Grosam wrote:
>>
>>> If there is no appropriate free or commercial tool which could solve your problem already, I would suggest the following:
>>>
>>> 1) Use a NSDictionaryEnumerator in order to recursively iterate through a specified dictionary at any volume.
>>> 2) For each file item,
>>> 3) skip it if you don't want to process it, or
>>> 4) retrive file name (url), modification date and whether it is a dictionary
>>> 4.1) process the file item
>>
>>
>> Ups, replace "NSDictionaryEnumerator" with "NSDirectoryEnumerator" and "dictionary" with "directory" in the description.
>>
>> It should read:
>> 1) Use a *NSDirectoryEnumerator* in order to recursively iterate through a specified *directory* at any volume.
>> 2) For each file item,
>> 3) skip it if you don't want to process it, or
>> 4) retrive file name (url), modification date and whether it is a *directory*
>> ...
>>
>> Sorry for the mistake  :)
>
> If you’re scanning the entire drive, FSCatalogSearch is likely to be a lot faster than NSDirectoryEnumerator.

Thanks for the valuable comments, all.

I was thinking, what about using Spotlight for this? Set the scope of a NSMetaDataQuery and then configure the query to retrieve items that have been modified since a certain date?

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software              				email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Looking for help scanning entire drives
      • From: Ross Carter <email@hidden>
References: 
 >Looking for help scanning entire drives (From: Laurent Daudelin <email@hidden>)
 >Re: Looking for help scanning entire drives (From: Andreas Grosam <email@hidden>)
 >Re: Looking for help scanning entire drives (From: Andreas Grosam <email@hidden>)
 >Re: Looking for help scanning entire drives (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Looking for help scanning entire drives
  • Next by Date: Re: Spotcolors in Cocoa
  • Previous by thread: Re: Looking for help scanning entire drives
  • Next by thread: Re: Looking for help scanning entire drives
  • Index(es):
    • Date
    • Thread