Checks for links and dirs