我有一个使用文件插件的应用程序,在应用程序内一切正常,但我使用的文件没有出现在文件资源管理器中。Cordova文件没有创建目录
我的班级:
function FileCordova() {
this.createDir = function(dirName, callback) {
App.db.fsSetup();
if (App.db.hasFS()) {
window.requestFileSystem(window.PERSISTENT, 0, function (f) {
f.root.getDirectory(dirName, {create: true}, function (d) {
typeof callback === 'function' && callback(d.name, d.fullPath);
},
function(error, err2){
console.log(error);
});
}, function(error,err2){
console.log(error);
});
} else {
typeof callback === 'function' && callback();
}
};
}
里面的应用程序去文件出现,但我不能在根目录中找到。
谢谢!有用! –