Added createSubDirectory variant