Added a method to compute stat about all files listed.