You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Richard Amaury (JIRA)" <ji...@apache.org> on 2016/05/23 15:21:12 UTC

[jira] [Created] (CB-11307) Can't create file with cordova.file.dataDirectory

Richard Amaury created CB-11307:
-----------------------------------

             Summary: Can't create file with cordova.file.dataDirectory 
                 Key: CB-11307
                 URL: https://issues.apache.org/jira/browse/CB-11307
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin File
         Environment: Visual studio 2015 with cordova, Android 4.4.2
            Reporter: Richard Amaury


I'm trying to create and write to a file in cordova.file.dataDirectory
(file:///data/data/<package name>/files/).

But without success on android 4.4.2 .
The code fails on :


directoryEntry.getFile("myfile.txt", { create: true }, function() {}, function() {});
or 
fs.root.getFile("myfile.txt", { create: true, exclusive: false }, function () {}, function () {});



However, it works on Android 6




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org