Bi-fold doors are good because they don’t take up as much space as swinging doors but, boy, can they be temperamental. They are hinged in the middle to allow them to fold open rather than swing open.
Search results for:
Before deciding whether to repair the fence or replace it, test its strength. If most of the framework feels solid, I would repair it. If most of the posts are falling down, it’s probably best to rebuild.