do mkdir in docGenerator to avoid no such file or directory error