Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Ionic angular 12 with Capacitor

$
0
0

Unable-to-find-the-directory-created-with-capacitor-filesystem-api-on-my-device

hier is my Code
const APP_DIRECTORY = Directory.Documents;
this.currentFolder = this.route.snapshot.paramMap.get(‘folder’) || ‘’;

async loadDocuments() {
const folderContent = await Filesystem.readdir({
directory: APP_DIRECTORY,
path: this.currentFolder
});
this.folderContent = folderContent.files.map(file => ({
name: file,
isFile: file.includes(’.’),
uri: Filesystem.getUri({
directory: APP_DIRECTORY,
path: this.currentFolder
})
}));
console.log(this.folderContent);
}

i I can’t find my folder, please help me, thks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



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