From 9fd3c8ba309c28f3e0eeeffdb4e6239a29df1dca Mon Sep 17 00:00:00 2001 From: Mauricio Muler Bodemann Date: Tue, 10 Dec 2024 13:39:27 +0100 Subject: [PATCH] Adapts return logic to implement the newly added method Fixes: SIRI-1028 --- src/main/java/sirius/kernel/commons/Files.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**