pshirshov / idea-bytecode-editor

Gloomy tool based on ASM and modified Jasmin
BSD 2-Clause "Simplified" License
16 stars 6 forks source link

Plugin not installed says while saving file using cordova-plugin-file #2

Open shivakanthredd opened 6 years ago

shivakanthredd commented 6 years ago

i've installed cordova-plugin-file but it is showing plugin is not installed while saving the file. i've used platform ready function also.

this.platform.ready().then((err)=>{ console.log(err); let result=this.file.createDir(this.file.externalRootDirectory,this.fileDir,true);

result.then( data=> {
    this.dirPath=data.toURL();
    alert("dir created"+ this.dirPath);
    this.file.writeFile(this.dirPath, this.fileName, this.fileContent, {replace:true});
    alert("file created"+ this.dirPath);

}).catch(error => {
  alert(error);
});

});