Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

How can i access the app's assets folder using fileSystem capacitor

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>