adding support for paging through the listFiles results