Corrected function call

Corrected call to object function to get list of files