mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-28 04:06:32 +00:00
Fix relative path computation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user