Main Panel located in entrance closet

I am located in Toronto in Canada & wanted to know if a main electrical panel can be located inside a clothes closet (main entrance)?

I took this from your web site. You should know the answer: Having completed upwards of 2,500 home inspections to date on a wide range of residential and commercial properties and having spent over 30 years in the construction business, Joe’s experience is undeniable.

Not sure about Canada but here they are not permitted in a clothes closet.