From aa9b42b45e8afc2905e519096fe1b130e90c2cc7 Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Fri, 30 Dec 2022 10:24:51 +0000
Subject: [PATCH] Readme angepasst

---
 src/de/uhilger/calypso/handler/PlayHandler.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/calypso/handler/PlayHandler.java b/src/de/uhilger/calypso/handler/PlayHandler.java
index f11a935..0c2b527 100644
--- a/src/de/uhilger/calypso/handler/PlayHandler.java
+++ b/src/de/uhilger/calypso/handler/PlayHandler.java
@@ -77,7 +77,9 @@
         //FileUtils.deleteDirectory(new File(System.getProperty("omx.wd"), "omx-logs"));
         FileSystem fs = FileSystems.getDefault();
         Path path = fs.getPath(System.getProperty("omx.wd"), "omx-logs");
-        deleteDirectory(path);
+        if(path.toFile().exists()) {
+          deleteDirectory(path);
+        }
         //Files.delete(path);
       } catch (IOException ex) {
         logger.log(Level.SEVERE, null, ex);

--
Gitblit v1.9.3