Android: How to detect a directory in the assets folder?
android, exists, file, java
Solution
You can check if a File represents a directory using http://developer.android.com/reference/java/io/File.html#isDirectory(). Is that what you mean?
Problem
I'm retrieving files like this ``` String[] files = assetFiles.list("EngagiaDroid"); ``` How can we know whether it is a file or is a directory? I want to loop through the directories in the assets folder then copy all of its contents.