언어 설정

Menu
Sites
Language
file access with web API

Hi. everyone.

 

I recently try to access  sysfs node with File web API such as, tizen.filesystem.resolve(). but, I can't resolve it.

for example, we need to access /sys/devices/system/cpu/cpu0/cpufreq/* sysfs for system utility apps.

is It possible to access any files on the linux root fs with web APIs? or just possble to access media/ folder.

if possible, please let me know with some code snippet.

thanks.

Responses

1 댓글
Alex Dem

Hi,
I did not find a way how to access this folder. Here is regarding filesystem api for web app:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.device.apireference/tizen/filesystem.html

Looks like you able to get value of CPU load using SystemInfo api only:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.device.apireference/tizen/systeminfo.html#::SystemInfo::SystemInfoCpu
Alexey.