Try it! The first time you end up in the dir. The second time not.
Because mkdir fails. Because the dir is already there. Ok, there are
Server around, which go "Make a Dir? Is the dir there or not? So don't
bother me with particulars!". There your tactic succeeds.