Test if is path (file names and directory paths).