1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-30 17:20:20 +02:00

Fixed relative path issue. Relative path was being made from subfolder to working dir, now goes from working dir to subfolder.

This commit is contained in:
noesterle
2022-10-20 23:46:43 -04:00
committed by soloturn
parent 3545cfbda9
commit 76d1905807

View File

@@ -323,7 +323,7 @@ public class Utils {
*/
public static String removeCWD(Path saveAs) {
try {
return saveAs.relativize(Paths.get(".").toAbsolutePath()).toString();
return Paths.get(".").toAbsolutePath().relativize(saveAs).toString();
}
catch (IllegalArgumentException e) {
return saveAs.toString();