Is this going to try creating the directory everytime the function is called (which is many times)?