Hi,
I want to create directory, but system allows me to do it, only when in my .adef file sandboxed: false.
I have got in .adef :
requires:
{
dir:
{
/mnt/userrw /
}
}
my .c file
le_result_t Err = le_dir_Make(“/mnt/userrw/TestDir”, S_IRUSR | S_IWUSR);
if(Err == LE_DUPLICATE)
{
//System creates folder “/mnt/userrw/TestDir” but instead of Err == LE_OK
//I have got Err == LE_DUPLICATE which is weird.
}
I am going to store data in files located in the folder, so I have to have permission to create/read/write files there.
Questions:
- Do I have to have sandboxed:false? If not what should I change in my program to create dir.
- Which folder should I use for my data storage?
- Why system returns LE_DUPLICATE instead of LE_OK
Thanks