diff --git a/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java b/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java index 951562e5..861410b7 100644 --- a/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/AbstractHTMLRipper.java @@ -265,7 +265,7 @@ public abstract class AbstractHTMLRipper extends AbstractRipper { } LOGGER.debug("Downloading " + url + "'s description to " + saveFileAs); if (!saveFileAs.getParentFile().exists()) { - LOGGER.info("[+] Creating directory: " + Utils.removeCWD(saveFileAs.getParent())); + LOGGER.info("[+] Creating directory: " + saveFileAs.getParent()); saveFileAs.getParentFile().mkdirs(); } return true; diff --git a/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java b/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java index e31d9c0f..407aa33a 100644 --- a/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/AbstractRipper.java @@ -339,7 +339,7 @@ public abstract class AbstractRipper } LOGGER.debug("Downloading " + url + " to " + saveFileAs); if (!saveFileAs.getParentFile().exists()) { - LOGGER.info("[+] Creating directory: " + Utils.removeCWD(saveFileAs.getParent())); + LOGGER.info("[+] Creating directory: " + saveFileAs.getParent()); saveFileAs.getParentFile().mkdirs(); } if (Utils.getConfigBoolean("remember.url_history", true) && !isThisATest()) { diff --git a/src/main/java/com/rarchives/ripme/utils/Utils.java b/src/main/java/com/rarchives/ripme/utils/Utils.java index 825d5142..7323759e 100644 --- a/src/main/java/com/rarchives/ripme/utils/Utils.java +++ b/src/main/java/com/rarchives/ripme/utils/Utils.java @@ -362,16 +362,6 @@ public class Utils { return url; } - /** - * Removes the current working directory from a given filename - * - * @param file Path to the file - * @return 'file' without the leading current working directory - */ - public static String removeCWD(String file) { - return removeCWD(Paths.get(file)); - } - /** * Get a list of all Classes within a package. Works with file system projects * and jar files! Borrowed from StackOverflow, but I don't have a link :[