If there’s not enough wall space on one side of the opening, you can install a pair of doors ... allowing the door to slide ...
In her latest DIY, she created the barn doors out of just a few supplies. To get the look, she purchased barn door hardware, cedar fence planks, and used her drill and screws to put it all together.