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 can contain '.' chars, so how does system understand whether there’s a file or a folder?
I need a valid method to check if a String represents a path for
Share
Assuming
pathis yourString.See
FileJavadocOr you can use the NIO class
Filesand check things like this: