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

listDir in sdcard returns empty array

$
0
0

@MustafaMohamed1996 wrote:

this.diagnostic.getExternalStorageAuthorizationStatus().then(s => console.log('sss', s))
     this.diagnostic.getExternalSdCardDetails().then(d => {
        let filePath = d.filter(c => c.type === 'root')[0].filePath + '/';
        this.file.listDir(filePath, '').then(folders=> {
        console.log(folders) //[] empty array :( 
       })
    })
})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles