mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-31 01:30:00 +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) {
|
public static String removeCWD(Path saveAs) {
|
||||||
try {
|
try {
|
||||||
return saveAs.relativize(Paths.get(".").toAbsolutePath()).toString();
|
return Paths.get(".").toAbsolutePath().relativize(saveAs).toString();
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException e) {
|
catch (IllegalArgumentException e) {
|
||||||
return saveAs.toString();
|
return saveAs.toString();
|
||||||
|
Reference in New Issue
Block a user