Checks that url exists and is directory.