Tested inspectFileOrDirNameAndPath()