Am able to create and remove a directory but how to display the files of that directory on screen.
Am getting [object Obejct] on screen
Home.ts
listAllFiles(){
this.platform.ready().then(() => {
this.file.listDir(this.file.externalRootDirectory, "DirectoryFile")
.then((listfiles) => {
this.showFile=listfiles;
console.log("Directory listeing" + this.showFile);
})
.catch((err) =>{
alert(JSON.stringify(err));
})
})
}
Home.html
<ion-list>
<ion-item *ngFor="let printValues of showFile">
{{printValues}}
</ion-item>
</ion-list>