I am facing an issue with hidden folders starting with a dot. I want to access the WhatsApp .statuses folder but when I add the path it does not give me the files in that folder.
I am using rn-fetch-blob
package. Below is the code for that:
RNFetchBlob.fs
.ls(`${dirs.SDCardDir}/Android/media/com.whatsapp/WhatsApp/Media/.statuses`)
.then(data => {
console.log('data => ', data);
})
.catch(error => {
console.log(error);
});
It gives me an empty array.
But
If I rename the folder to statuses and remove the dot then the fetches the images in that folder. Like below:
data => ["IMG-20201015-WA0003.jpg", "IMG-20201015-WA0002.jpg"]
Can anyone please help me in resolving this issue?
I can provide more details if required. Thanks!!!