Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Why createFile() method can not create file

$
0
0

My development platform is Android 5.0.2, and I followed API document of $cordovaFile carefully, the following is my code snippet:

$cordovaFile.createFile(cordova.file.dataDirectory, "test.txt", true)
.then(function (success) {
console.log('OK');
}, function (error) {
console.log(error.code)
});

In fact, I got 'OK', but I can't find file test.txt in foler files. Can anybody help me? Thanks a lot in advance.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>