use listFilesWithExtension in all code range.