1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-09-01 18:03:55 +02:00

utils, clearurl now java.nio

This commit is contained in:
soloturn
2022-01-03 13:57:00 +01:00
parent a610d5c3ce
commit fca100cd25

View File

@@ -297,8 +297,12 @@ public class Utils {
* Delete the url history file * Delete the url history file
*/ */
public static void clearURLHistory() { public static void clearURLHistory() {
File file = new File(getURLHistoryFile()); Path file = Paths.get(getURLHistoryFile());
file.delete(); try {
Files.delete(file);
} catch (IOException e) {
e.printStackTrace();
}
} }
/** /**