The director of public safety shall see that the inmates of a city infirmary are comfortably provided for and kindly treated, and he may provide for the care and support of the males and females in separate buildings, or in separate departments of the same building.