Re: Deleting 20000 files in applicationWillTerminate
Re: Deleting 20000 files in applicationWillTerminate
- Subject: Re: Deleting 20000 files in applicationWillTerminate
- From: Jens Alfke <email@hidden>
- Date: Fri, 15 Nov 2013 16:43:33 -0800
On Nov 15, 2013, at 4:37 PM, Roland King <email@hidden> wrote:
> If you put all the files in a subdirectory and delete the subdirectory, I've found that to be pretty quick.
All that will do is have NSFileManager loop over all the files deleting them. (There is no system call to delete a directory tree.) It should be just as fast to do that loop yourself. It doesn’t sound like the OP can put the files in a subdirectory, because they’re being copied directly into Documents by iTunes.
—Jens
_______________________________________________
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