Added a check to see if the public folder is being populated. If not error out.