Implements the readdir operation. This will handle the continuous calls to readdir until the entire contents of the directory have been read, returning them in a single array.

Methods