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
Please stick to the nio API to perform these checks
import java.nio.file.*; static Boolean isDir(Path path) { if (path == null || !Files.exists(path)) return false; else return Files.isDirectory(path); }