mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Fix relative path computation
This commit is contained in:
parent
7821d0e779
commit
84378c18d8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue