adding method to create public folder if it does not exist