code: function createDirectory(directory) {
    let curPath = '/';
    const paths = directory.split(path.sep);
    paths.forEach((part, index) => {
      if (!part) {
        return;
      }
      curPath = path.join(curPath, part);
      const thisPath = curPath;
  
      try {
        fs.mkdirSync(thisPath);
      }
      catch (err) {
        if (err.code !== 'EEXIST') {
          throw err;
        }
      }
    });
  }
docs: ----------------------------------------------------------------------- Utilities for loading, finding handlers for message serialization/deserialization  When rosnodejs starts, it searches through your cmakepath for generated javascript messages. It caches paths for any of the packages it finds. Then, in rosnodejs when you ask to use a message package we check for it in the cache and require it if found. -----------------------------------------------------------------------