I'm using readDirAssets on android, and was getting my text and pdf files as directories! ie. x.isDirectory() == true for a given pdf file
Problem seems to be that the assets are compressed by default. So when trying to do assetManager.openFd(path); on the RNFSManager.java file, an IOExceptionis raised with the message:
"This file can not be opened as a file descriptor; it is probably compressed"
There should be another way to detect folders than catching an exception?