Changes

Line 72: Line 72:     
=== How do I get command line access to the files in my DataStore? ===
 
=== How do I get command line access to the files in my DataStore? ===
Use the dslinks.py script to generate a set of symbolic links.  Then you can use the following script to copy selected datastore objects to a usb stick or sd chip.
+
Use the [datastore symbolic links|dslinks.py] script to generate a set of symbolic links.  Then you can use the following script to copy selected datastore objects to a usb stick or sd chip.
 
<pre>
 
<pre>
 
         #use the unix for command to iterate over the activities or file extensions of interest
 
         #use the unix for command to iterate over the activities or file extensions of interest
 
         for fn in `find /home/olpc/datalinks |grep write`;  
 
         for fn in `find /home/olpc/datalinks |grep write`;  
 
         do
 
         do
           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.  
6

edits