getAsDirectory

Checks and returns if there's a valid directory with given path