Skip to content

Commit f5a06cc

Browse files
committed
Docs
1 parent b01a6d8 commit f5a06cc

File tree

1 file changed

+4
-1
lines changed
  • testcontainers-advanced-imagebuilder/src/main/java/software/xdev/testcontainers/imagebuilder/transfer/java/nio/file/winntfs

1 file changed

+4
-1
lines changed

testcontainers-advanced-imagebuilder/src/main/java/software/xdev/testcontainers/imagebuilder/transfer/java/nio/file/winntfs/FileTreeWalker.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ IOException ioeException()
239239
this.maxDepth = maxDepth;
240240
}
241241

242+
// region Reflect access BasicFileAttributesHolder
242243
private boolean initializedBasicFileAttributesHolderClazz;
243244
private Class<?> basicFileAttributesHolderClazz;
244245
private Method mBasicFileAttributesHolderGet;
@@ -280,6 +281,7 @@ private BasicFileAttributes extractFromBasicFileAttributesHolder(final Path file
280281
return null;
281282
}
282283
}
284+
// endregion
283285

284286
/**
285287
* Returns the attributes of the given file, taking into account whether the walk is following sym links is not.
@@ -394,8 +396,9 @@ private Event visit(final Path entry, final boolean ignoreSecurityException, fin
394396

395397
// at maximum depth or file is not a directory
396398
final int depth = this.stack.size();
399+
// MODIFIED: Patched here -------------------------v
397400
if(depth >= this.maxDepth || !(attrs.isDirectory() && !attrs.isOther()))
398-
{ // <-- PATCH IS HERE
401+
{
399402
return new Event(EventType.ENTRY, entry, attrs);
400403
}
401404

0 commit comments

Comments
 (0)