From 84378c18d88a09ce6bdc7e61536a4f54fb6fa940 Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 4 Mar 2024 18:03:30 +0000 Subject: [PATCH] Fix relative path computation --- core/src/main/java/io/xpipe/core/store/FileNames.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/xpipe/core/store/FileNames.java b/core/src/main/java/io/xpipe/core/store/FileNames.java index 48b3fb868..edbac0588 100644 --- a/core/src/main/java/io/xpipe/core/store/FileNames.java +++ b/core/src/main/java/io/xpipe/core/store/FileNames.java @@ -137,7 +137,7 @@ public class FileNames { } public static String relativize(String from, String to) { - return normalize(to).substring(normalize(from).length()); + return normalize(to).substring(FileNames.toDirectory(normalize(from)).length()); } public static String normalize(String file) {