我正在尝试使用cordovaFile ngCordova创建一个文件夹,但它总是调用错误回调,一些建议?
$cordovaFile.createDir(cordova.file.applicationDirectory+"/www/pdf/","attach", true)
.then(function (success) {
console.log('folder created');
}, function (error) {
console.log('folder not created');
});