Folding doors are a very popular choice for wardrobe doors. They won’t swing outward as far as a traditional door, which means that you’ll be able to open them and look inside without stepping backward away from the door, and without clearing a space in front of the wardrobe.
If your wardrobe is slightly larger, then the same space-saving virtues still apply; if you lack sufficient room around the edge of your bed, then folding doors will offer an elegant means of maximising your living space.