diff --git a/src/main/java/sirius/kernel/commons/Files.java b/src/main/java/sirius/kernel/commons/Files.java index 185fcca8..549f6af9 100644 --- a/src/main/java/sirius/kernel/commons/Files.java +++ b/src/main/java/sirius/kernel/commons/Files.java @@ -185,7 +185,7 @@ public static boolean isConsideredMetadata(@Nullable String path) { if (Strings.isEmpty(path)) { return false; } - return METADATA_FILES.stream().anyMatch(path::contains); + return streamPath(path).anyMatch(METADATA_FILES::contains); } /**