I need a valid method to check if a String represents a path for file or a directory. What are valid directory names in Android? As it comes out, folder names c
String
String path = "Your_Path"; File f = new File(path); if (f.isDirectory()){ }else if(f.isFile()){ }