Languages

Menu
Sites
Language
Not able to create, read and write files.

I'm trying to write data to a file on the Samsung Galaxy watch. I've followed the example listed here

https://developer.samsung.com/tv/develop/api-references/tizen-web-device-api-references/filesystem-api

I've added the required read and write privileges in the config.xml.

The execution never reaches the console.error... line. Am I missing anything?

Thank you!

tizen.filesystem.resolve('documents', function(dir)
{
  console.error("File system resolved");
   documentsDir = dir;

}, function(e)
{
   console.log("Error" + e.message);
}, "rw");

Responses

1 Replies
sha kuni

Apologizing for the duplicate question. This problem has already been addressed here.

https://developer.tizen.org/forums/web-application-development/unable-write-files-tizen-4.0.0