I use cordova-plugin-file for ionic 2.
I know the path of the cache directory, here is my code:
this.file.resolveDirectoryUrl(this.file.cacheDirectory).then(data => {
console.log(JSON.stringify(data)) ;
});
Is it possible in Ionic to know a directory's size and clear all files in it?