From 82594dab993741669b50fe1ec784f528fd836bc2 Mon Sep 17 00:00:00 2001 From: undisclosed Date: Fri, 30 Dec 2022 08:47:11 +0000 Subject: [PATCH] Verwendung des VLCPlayer verbessert --- 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