Hi.
I want to read & write some contents such as Videos, Documents, Downloads under "/opt/usr/media" in my Galaxy watch.
To do so, I added some C# file system API codes in my app, but it didn't work. It throws exception with message "Access to the path '/opt/usr/media/Downloads' is denied". Code is very simple:
String dirPath = "/opt/usr/media/Downloads";
FileSystemInfo[] directoryInfo = new DirectoryInfo(dirPath).GetDirectories();
FileSystemInfo[] fileInfo = new DirectoryInfo(dirPath).GetFiles();
I added all privileges which seems to be related with /opt/usr/media/Downloads such as below:
http://tizen.org/privilege/internet http://tizen.org/privilege/network.get http://tizen.org/privilege/network.profile http://tizen.org/privilege/network.set http://tizen.org/privilege/externalstorage http://tizen.org/privilege/externalstorage.appdata http://tizen.org/privilege/mediastorage http://tizen.org/privilege/mediacontroller.server http://tizen.org/privilege/mediacontroller.client http://tizen.org/privilege/download http://tizen.org/privilege/content.write
In spite of that, the code didn't work anyway.
I don't know why, but above code works with "/tmp" directory! Not only that, I can create a file under "/tmp" such as "/tmp/test.png". However, in this case, the created file can not be accessed by Tizen APIs such as `new MediaDatabase().ScanFile("/tmp/test.png")` and "Operation not permitted" exception is thrown.
The C# file system API behavior in Tizen is very very confusing :(
What can I do to solve these file access problem?