Deal with files stat cannot read in list_files