readdir method should return entries

readdir method doesn't resolve result.