The latter being easier to treat. Fungi
are oppurtunistic and look for any reason to come back to you. Afterall, why not? Yu offers them "free rent", a place to live.
Antifungal medication is a start. Even after the fungus may be eradicated, i believe maintenance therapy is required to keep the fungus away.