- long lineCount = Files.walk(Paths.get(path)).filter(Files::isRegularFile).filter(p -> p.toString().endsWith('.' + filetype))
- .flatMap((Function<Path, Stream<String>>) p ->
+ AtomicLong lineCount = new AtomicLong();
+ AtomicLong byteSize = new AtomicLong();
+ AtomicLong fileCount = new AtomicLong();
+ Files.walk(Paths.get(path)).filter(Files::isRegularFile).filter(p -> p.toString().endsWith('.' + filetype))
+ .filter(p -> !StreamSupport.stream(p.spliterator(), false).anyMatch(Paths.get("bin")::equals))
+ .filter(p -> !StreamSupport.stream(p.spliterator(), false).anyMatch(Paths.get("classes")::equals)).forEach(p ->