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:
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user