Skip to content

Commit

Permalink
Try catch :p
Browse files Browse the repository at this point in the history
  • Loading branch information
ReclipseTheOne committed Dec 12, 2024
1 parent a01fb47 commit 20b7559
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doom/src/doom/DoomMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,12 @@ private void AddFile(String file) {
* Just a simple directory checks
*/
private boolean doesFolderExist(Path path) {
return (Files.exists(path) && Files.isDirectory(path));
try {
return (Files.exists(path) && Files.isDirectory(path));
} catch (Exception e) {
e.printStackTrace();
return false;
}
}

private void createFolder(Path path) {
Expand Down

0 comments on commit 20b7559

Please sign in to comment.