Question: can bifold doors be locked?
Answer: For a simple single bifold door lock, consider using a padlock. Install a hasp so that one end sits on one side of the folding section and one sits on the other. The lock body itself should cover the folding portion of the lock. Insert a padlock through the hasp to keep the door locked except when opened with a key.