isDirectory

Checks if the current path points to a directory.

Return

true if directory, false otherwise