Add readdir to wire_io