How can i access the assets folder using the built in filesystem capacitor plugin in Ionic 5. I have followed all the filesystem capacitor documentation but nothing seems to do the job. I want to avoid cordova plugins as much as possible.
I have tried setting the path to file:///android_asset/www/assets but failed.
Also tried this:
try {
let ret = await Filesystem.readdir({
path: “”,
directory: FilesystemDirectory.External
});
console.log("Directory: " + ret);
} catch(e) {
console.error(‘Unable to read dir’, e);
}
1 post - 1 participant