Yes but does not hurt anything, we can duplicate the code to only have one mkdir for dir