Mark the path you need to keep clear
Use tape to mark the arc of a hinged leaf on the floor. Open nearby cupboard doors and check where you would stand with shoes, a hamper or a vacuum. A folding door pulls the leaves to the side and still uses part of the opening. Sliding closet panels need space to overlap, so check the clear side you can reach when one is open.
Look above and beside the opening
A track needs the right mounting surface and level head. For a door that slides along a wall, look for baseboards, switches and trim across the travel path. A pocket inside a wall needs its own clear space. If you're unsure what is already inside the wall, get that checked before choosing a pocket layout. Measure the open gap at its narrowest point for anything bulky you need to move through it.
Try the path before you decide
Mark where the handle will sit when opened and walk through the space carrying the item you use most. Ask what guides, tracks and floor fittings are included with the configuration you prefer.