[sugar] Info about data, instance and tmp directories in activity root

Faisal Anwar fanwar
Fri Jun 13 10:36:10 EDT 2008


thanks!

On Fri, Jun 13, 2008 at 10:31 AM, Tomeu Vizoso <tomeu at tomeuvizoso.net>
wrote:

> On Fri, Jun 13, 2008 at 4:20 PM, Faisal Anwar <fanwar at mediamods.com>
> wrote:
> > Hi,
> >
> > Does anyone know about (or can point me to docs for) the recommended uses
> of
> > the data, instance and tmp directories that exist for every activity
> > (usually found in the  ~myhome/.sugar/default/org.laptop.MyActivity/
> > directory)? In particular, I had the following questions:
> >
> > - what types of data should be written in each of these three
> subdirectories
> > and what is the difference between each?
> > - Are there specific permissions or ownership issues involved with these
> > directories.
>
> http://wiki.laptop.org/go/Low-level_Activity_API#Writable_Directories
>
> > - When should developers be writing files or data to the datastore and
> when
> > should they instead by saving files directly to one of these directories?
>
> An activity has to save to the DS all that is required to resume the
> activity at a later point. You can see this as storing an activity
> into the freezer, so it can be unfrozen later and resumed.
>
> Regards,
>
> Tomeu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20080613/6dcdd2af/attachment.htm 



More information about the Sugar-devel mailing list