Development Team/Almanac/sugar.datastore.datastore: Difference between revisions
| Line 79: | Line 79: | ||
cp -p fn /media/KINGSTON | cp -p fn /media/KINGSTON | ||
done | done | ||
</pre | </pre> | ||
=== How do I identify the different mount points available through the datastore api? === | === How do I identify the different mount points available through the datastore api? === | ||
[http://wiki.laptop.org/go/Low-level_Activity_API#Mount_Points Mount points] help to abstract different locations where datastore objects can be stored. The following code uses the datastore.mounts() method to help print out all the mount points available, with each point identified by three key properties: title, uri and id. | [http://wiki.laptop.org/go/Low-level_Activity_API#Mount_Points Mount points] help to abstract different locations where datastore objects can be stored. The following code uses the datastore.mounts() method to help print out all the mount points available, with each point identified by three key properties: title, uri and id. | ||