private List getPaths()

in powershell-agent/src/main/java/jetbrains/buildServer/powershell/agent/detect/cmd/DetectionPaths.java [106:119]


  private List<String> getPaths(@NotNull final Collection<String> paths) {
    final List<String> result = new ArrayList<>();
    for (String base : paths) {
      if (LOG.isDebugEnabled()) {
        LOG.debug("Processing PowerShell Windows path: " + base);
      }
      File f = new File(base);
      if (f.isDirectory()) {
        result.add(f.getAbsolutePath());
        result.addAll(populateWithChildren(f));
      }
    }
    return result;
  }