How to prevent a temp folder from being deleted
How to prevent a temp folder from being deleted
- Subject: How to prevent a temp folder from being deleted
- From: "Mills, Steve" <email@hidden>
- Date: Wed, 26 Mar 2014 22:08:33 +0000
- Thread-topic: How to prevent a temp folder from being deleted
It appears that items in the TemporaryItems folder that are older than 3 days will be periodically deleted. (One of our guys found some Darwin docs that mention this.) This is a problem for users of our app that might keep it running for more than 3 days. We store a temp folder in there that might contain temp pieces of data for their open files, etc.
I'm looking for a way to prevent the folder from being deleted either by the OS or by the user while the app is still running. As a test, I set the NSFileBusy and NSFileImmutable flags on a file in our temp folder, but I was still able to move the folder to the trash and empty it. So that didn't work.
Ideas?
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
_______________________________________________
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