Test the file is really a file when initializing the File object