Added limit option to mkdirs().