Generate public directory