Creating a Function : Directory