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
public static boolean isDirectory(String path) { return path !=null && new File(path).isDirectory(); }
To answer the question directly.