diff --git a/src/main/java/com/rarchives/ripme/utils/Utils.java b/src/main/java/com/rarchives/ripme/utils/Utils.java index e15dd9cc..e24677ef 100644 --- a/src/main/java/com/rarchives/ripme/utils/Utils.java +++ b/src/main/java/com/rarchives/ripme/utils/Utils.java @@ -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();