print out a warning message if the file isn't a regular file