1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-30 17:20:20 +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
*/
public static void clearURLHistory() {
File file = new File(getURLHistoryFile());
file.delete();
Path file = Paths.get(getURLHistoryFile());
try {
Files.delete(file);
} catch (IOException e) {
e.printStackTrace();
}
}
/**