You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I'm using
readDirAssets
on android, and was getting my text and pdf files as directories! ie.x.isDirectory() == true
for a given pdf fileProblem seems to be that the assets are compressed by default. So when trying to do
assetManager.openFd(path);
on the RNFSManager.java file, anIOException
is raised with the message:There should be another way to detect folders than catching an exception?
The text was updated successfully, but these errors were encountered: