list(Directory, Max) -> Return

Directory = #objref

Return = {ok, FileList, FileIterator}

FileList = [File]

File = FileIterator = #objref

This operation returns a list, of length Max or less, containing
Object References representing files or directories contained within
the target Directory. If the amount of objects found is less than Max
the returned Iterator will be a NIL object.