function getPathsSubdir(path) {
  const subdirPathList = [];
  const subdirs = fs.readdirSync(path);

  subdirs.forEach((subdir) => {
    if (!fs.statSync(`${path}/${subdir}`).isFile()) {
      return subdirPathList.push(`${path}/${subdir}`);
    }
    return null;
  });

  return subdirPathList;
}
Gets a list of subdirectory paths

@param path - The path to the directory
@returns {string} - List of directories paths