Description doesn't match what you have actually done. 

You first check if directory exist and then only create new directory.