Skip to content

Commit

Permalink
restore parallel processing to directory streams
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Jan 5, 2024
1 parent bcb03dc commit ac98b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ortus/boxlang/runtime/util/FileSystemUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public static Stream<Path> listDirectory( String path, Boolean recurse, String f

try {
if ( recurse ) {
directoryStream = Files.walk( Path.of( path ) );
directoryStream = Files.walk( Path.of( path ) ).parallel();
} else {
directoryStream = Files.walk( Path.of( path ), 1 );
directoryStream = Files.walk( Path.of( path ), 1 ).parallel();
}
} catch ( IOException e ) {
throw new RuntimeException( e );
Expand Down

0 comments on commit ac98b7f

Please sign in to comment.