stat: use helper for IO direction name