Skip to content

Commit 6a8c159

Browse files
committed
Merge branch 'v2' into develop
2 parents 33b0973 + e38802e commit 6a8c159

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

testcontainers-advanced-imagebuilder/src/main/java/software/xdev/testcontainers/imagebuilder/transfer/DefaultTransferFilesCreator.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ protected Map<Path, String> walkFilesAndDetermineTransfer(
132132
final IgnoreNode ignoreNode,
133133
final Set<String> alwaysIncludedRelativePaths) throws IOException
134134
{
135-
try(final Stream<Path> walk = Files.walk(this.baseDir))
135+
try(final Stream<Path> walk = Files.find(
136+
this.baseDir,
137+
Integer.MAX_VALUE,
138+
// Ignore directories
139+
(path, attrs) -> attrs.isRegularFile()))
136140
{
137141
final Map<String, Boolean> cachedDirectoryOutcome = new ConcurrentHashMap<>();
138142

@@ -142,7 +146,6 @@ protected Map<Path, String> walkFilesAndDetermineTransfer(
142146
.toList()
143147
.stream()
144148
.parallel()
145-
.filter(Files::isRegularFile)
146149
.map(file -> this.determineFileForTransfer(
147150
ignoreNode,
148151
alwaysIncludedRelativePaths,

0 commit comments

Comments
 (0)