언어 설정

Menu
Sites
Language
unable to create new directory in tizen 2.3

Hi all,

i am using Mkdir() to create a directory in sdcard but every time it is giving -1 as return value i want to create a directory in external sdcard

i am using app_get_shared_data_path() to get the shared data path .
i want to share my files with other apps so i am using app_get_shared_data_path()

i am able to create the directory with app_get_data_path()

please help me in solving the issue 

Regards
Harish

Responses

4 댓글
Alex Dem

Hi,
+1
I was able to create directory on sdcard using mkdir() only in /opt/storage/sdcard/ root folder on Z1 custom device (not official) . Before this I have switched device into root account mode using 'sdb root on' (also I have added http://tizen.org/privilege/externalstorage in manifest)
I tried with paths returned from app_get_external_data_path & app_get_external_shared_data_path but no effect.

But I was able to create with mkdir() folder inside /opt/usr/media (with http://tizen.org/privilege/mediastorage in manifest) or inside folder returned with app_get_data_path() on all devices.
Alexey.

Bogon Kim

Please declar http://tizen.org/privilege/externalstorage.appdata privilge in your manifest file then you can create directory in the data folder in the sdcard

Bogon Kim
Alex Dem

Hi,
Thank you for info. Really we need both. During attempts I tried to add privileges separately but was not success to create.
It will be good to mention this fact somewhere in dev guide explicitly.
Alexey.