Re: Problem enumerating a directory

2012-07-30 Thread Jens Alfke
On Jul 30, 2012, at 2:48 AM, Mark Allan wrote: > Thanks very much for the suggestion. I've just given that a try, but it > doesn't make any difference. The enumeration still stops early, but the > error handler block doesn't get called This sort of situation always makes me suspect an excep

Re: Problem enumerating a directory

2012-07-30 Thread Andy Lee
On Jul 30, 2012, at 8:28 AM, Andy Lee wrote: > Another thought: try running with NSZombie turned on. This could lead to painful swapping though if you're testing over zillions of files and never dealloc'ing. Maybe save as a last resort, or let it run for just a limited time in the hopes you'll

Re: Problem enumerating a directory

2012-07-30 Thread Andy Lee
On Jul 27, 2012, at 12:44 PM, Mark Allan wrote: > I'm trying to list a directory recursively to build up a snapshot of the > contents and store them in a core data DB, but keep running into issues with > the directory list. The core data part is working fine as far as I can tell! Just for grin

Re: Problem enumerating a directory

2012-07-30 Thread Mark Allan
On 30 Jul 2012, at 11:37, Mike Abdullah wrote: > On 30 Jul 2012, at 10:48, Mark Allan wrote: >> Thanks very much for the suggestion. I've just given that a try, but it >> doesn't make any difference. The enumeration still stops early, but the >> error handler block doesn't get called, making m

Re: Problem enumerating a directory

2012-07-30 Thread Mike Abdullah
On 30 Jul 2012, at 10:48, Mark Allan wrote: > Thanks very much for the suggestion. I've just given that a try, but it > doesn't make any difference. The enumeration still stops early, but the > error handler block doesn't get called, making me think there's no error; the > enumeration simply

Re: Problem enumerating a directory

2012-07-30 Thread Mark Allan
Thanks very much for the suggestion. I've just given that a try, but it doesn't make any difference. The enumeration still stops early, but the error handler block doesn't get called, making me think there's no error; the enumeration simply thinks it's finished. Anything else I could try. FW

Re: Problem enumerating a directory

2012-07-27 Thread Kevin Perry
You should probably try -[NSFileManager enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:]. The errorHandler block will give you more detail about any errors that occur in the middle of the enumeration (and give you the ability to ignore them). -KP On Jul 27, 2012, at 9:44 AM, M