One closet fit according to the measurement of the plantation bi-fold doors.  Our other closet required a custom fit.  To avoid ordering custom closet doors, my husband used two 2x4s on each inner side of the custom closet to give it a custom fit. Otherwise, it would have been a 6 inch gap.  We ordered a standard size plantation closet bi fold door Wayfair offered.  This saved us the cost of ordering  custom closet doors.

The first photo is the standard custom fit doors.  The second is the one my husband adjusted to fit the standard size doors Wayfair offered.