Test for dir and file notation.