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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user