Createdir

this is all fine except the variable shouldn't be directoryExists but rather something like errorHappens.  There's already a test above for directory already exists.