Directory Creation in Function

Function can create all the necessary directories and subdirectories.