Deleting 20000 files in applicationWillTerminate
Deleting 20000 files in applicationWillTerminate
- Subject: Deleting 20000 files in applicationWillTerminate
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Fri, 15 Nov 2013 17:37:53 -0600
In my iPhone app, I am downloading files from server and storing them
locally (user's document directory). The path of each file downloaded is
subsequently updated in database.
If user tries to delete a file, first the file is deleted from local path
using removeItemAtPath: (NSFileManager), then corresponding record is
deleted from database.
Now I have one of the requirements according to which user can turn on a
UISwitch to delete all data on app exit.
Now my question is - suppose user downloaded 20000 files, say small images,
and user turned on the switch to delete all data on app exit. Is it good to
handle this task in applicationWillTerminate? What is the best way to
accomplish this scenario?
Please suggest.
--
Thanks,
Devarshi
_______________________________________________
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