private static long totalSize(Map<String,Long> relPathToSize){
  long total=0;
  for (  Long l : relPathToSize.values()) {
    total+=l;
  }
  return total;
}

private static long totalSize ( Map < String , Long > relPathToSize ) { long total = 0 ; for ( Long l : relPathToSize . values ( ) ) { total += l ; } return total ; }
get the total size of the paths .
