Fix relative path computation

This commit is contained in:
crschnick 2024-03-04 18:03:30 +00:00
parent 7821d0e779
commit 84378c18d8

View file

@ -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) {