Unable to make new directories within Legato app

Hi Sylvain,

Thanks for the assistance.

I think I’ve sorted it out by adding the following to my .adef file:

requires:
{
    dir:
    {
        // The SD card is mounted at '/mnt/userrw'
        /mnt/userrw     /
    }
}

Note that this particular app doesn’t do the mounting - only reading and writing. In another app’s .adef I have:

requires:
{
    device:
    {
        // Request read and write access to the SD card.
        [rw]    /dev/mmcblk0p1   /dev/mmcblk0p1
    }
    ...
}

Did you have issues running your app(s) sandboxed?
I get the following error when running the app as sandboxed.
LE_FILENAME dir_MakeSmack() 42 | Could not create directory '/mnt/userrw'. Permission denied

Also, do you mind sharing where you mounted your SD card? Is there perhaps a ‘better’ directory?

Cheers,
Raf