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