update mkDir method