mkdirRecurse will not do anything if the directory already exists, so there is no need to call existsDirectory.