specialFolderPath("temporary")

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

specialFolderPath("temporary")

Post by Dixie » Tue Apr 23, 2013 11:29 pm

I have just tried to use the "temporary" folder thinking that the files that are created in it would be lost when the app quits... and that is what I wanted. It seems however, that these files are preserved between launches, so to get rid of them I am deleting them in the preOpenStack handler...

Am I wrong in thinking that files in the 'temporary' folder would be deleted by iOS, rather than having to delete them in the preOpenStack handler ?

Dixie

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: specialFolderPath("temporary")

Post by Simon » Tue Apr 23, 2013 11:42 pm

Hi Dixie,
I supposed you tried "cache" as well.
They both read the same in the notes but I would have thought cache was even more temp than temp. :)
This might also have to do with the app remaining in memory, maybe both folders only get cleaned out when the app is pushed from memory?

You are better than me at this so I'm just making a buzzing sound here.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: specialFolderPath("temporary")

Post by Dixie » Wed Apr 24, 2013 12:54 am

Hey Simon...
• cache – the folder in which the application should store any transient data that needs to be preserved between launches (this folder is not backed up by iTunes on sync)

• temporary – the folder in which the application should store any temporary data that is not needed between launches (this folder is not backed up by iTunes on sync)
It was the 'any temporary data that is not needed between launches', as opposed to in the note for the 'cache' folder that states 'any transient data' that needs to be preserved between launches, that made me think that the 'temporary' folder would be 'cleaned out', as it were.... I guess I misunderstood ...

And you have made me smile... No Simon, I am not better at this than you are... We are only as good as our last handler !...:-)

Dixie

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: specialFolderPath("temporary")

Post by jacque » Wed Apr 24, 2013 6:34 pm

I think the temporary folder will get wiped by the OS if it needs more space. The data will stay there until the OS decides things are getting too crowded, which could be indefinitely or immediately when the app quits.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply