diff --git a/api/src/main/java/xyz/srnyx/annoyingapi/file/AnnoyingFile.java b/api/src/main/java/xyz/srnyx/annoyingapi/file/AnnoyingFile.java index 34c438b..18da757 100644 --- a/api/src/main/java/xyz/srnyx/annoyingapi/file/AnnoyingFile.java +++ b/api/src/main/java/xyz/srnyx/annoyingapi/file/AnnoyingFile.java @@ -121,9 +121,22 @@ public void load() { /** * Deletes the {@link #file} + * + * @param silentFail whether to fail silently + * + * @see #delete() + */ + public void delete(boolean silentFail) { + FileUtility.deleteFile(file.toPath(), silentFail); + } + + /** + * Deletes the {@link #file}, won't fail silently + * + * @see #delete(boolean) */ public void delete() { - FileUtility.deleteFile(file.toPath(), false); + delete(false); } /**