mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-07-31 19:10:15 +02:00
remove method removeCWD(String)
This commit is contained in:
@@ -265,7 +265,7 @@ public abstract class AbstractHTMLRipper extends AbstractRipper {
|
|||||||
}
|
}
|
||||||
LOGGER.debug("Downloading " + url + "'s description to " + saveFileAs);
|
LOGGER.debug("Downloading " + url + "'s description to " + saveFileAs);
|
||||||
if (!saveFileAs.getParentFile().exists()) {
|
if (!saveFileAs.getParentFile().exists()) {
|
||||||
LOGGER.info("[+] Creating directory: " + Utils.removeCWD(saveFileAs.getParent()));
|
LOGGER.info("[+] Creating directory: " + saveFileAs.getParent());
|
||||||
saveFileAs.getParentFile().mkdirs();
|
saveFileAs.getParentFile().mkdirs();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -339,7 +339,7 @@ public abstract class AbstractRipper
|
|||||||
}
|
}
|
||||||
LOGGER.debug("Downloading " + url + " to " + saveFileAs);
|
LOGGER.debug("Downloading " + url + " to " + saveFileAs);
|
||||||
if (!saveFileAs.getParentFile().exists()) {
|
if (!saveFileAs.getParentFile().exists()) {
|
||||||
LOGGER.info("[+] Creating directory: " + Utils.removeCWD(saveFileAs.getParent()));
|
LOGGER.info("[+] Creating directory: " + saveFileAs.getParent());
|
||||||
saveFileAs.getParentFile().mkdirs();
|
saveFileAs.getParentFile().mkdirs();
|
||||||
}
|
}
|
||||||
if (Utils.getConfigBoolean("remember.url_history", true) && !isThisATest()) {
|
if (Utils.getConfigBoolean("remember.url_history", true) && !isThisATest()) {
|
||||||
|
@@ -362,16 +362,6 @@ public class Utils {
|
|||||||
return url;
|
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
|
* 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 :[
|
* and jar files! Borrowed from StackOverflow, but I don't have a link :[
|
||||||
|
Reference in New Issue
Block a user