getReportTimes add check is directory or not