Added the FileSystem implementation of readdir.