datetime: check if the file exists