title: Check if a path represents a file or a folder
body: <p>I need a valid method to check if a <code>String</code> represents a path for file or a directory. What are valid directory names in Android? As it comes out, folder names can contain <code>'.'</code> chars, so how does system understand whether there's a file or a folder?</p>