code: function (dirname) {
          return __awaiter(this, void 0, void 0, function* () {
              let current = path.normalize(path.resolve(dirname));
              let doMake = [];
              while (!(yield isDir(current))) {
                  doMake.push(current);
                  current = path.dirname(current);
              }
              let next = doMake.pop();
              while (next) {
                  yield mkdir(next);
                  next = doMake.pop();
              }
              return dirname;
          });
      }
docs: Recursive mkdir