Optimized folder creating pattern