I want to check if the asset in Assets directory of my Android App is a File or a Directory.
I have already tried every solution available anywhere on internet including StackOverflow.
Most of the solutions use
File myFile = new File(path);
then check for
myFile.isDirectory();
or
myFile.isFile();
But it works only if I have my files and directories anywhere else other than under the Assets
directory.
Any suggestions will be highly appreciated.