From 87e583e3047c6caa4cd99b55ffe5ca7bd65daf3d Mon Sep 17 00:00:00 2001 From: DasBabyPixel <43410952+DasBabyPixel@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:19:45 +0200 Subject: [PATCH] fix NoSuchFileException from #1294 StackTrace 2 --- .../network/chunk/defaults/DefaultFileChunkedPacketHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/driver/src/main/java/eu/cloudnetservice/driver/network/chunk/defaults/DefaultFileChunkedPacketHandler.java b/driver/src/main/java/eu/cloudnetservice/driver/network/chunk/defaults/DefaultFileChunkedPacketHandler.java index a440386553..842ecb5fe1 100644 --- a/driver/src/main/java/eu/cloudnetservice/driver/network/chunk/defaults/DefaultFileChunkedPacketHandler.java +++ b/driver/src/main/java/eu/cloudnetservice/driver/network/chunk/defaults/DefaultFileChunkedPacketHandler.java @@ -85,6 +85,7 @@ public DefaultFileChunkedPacketHandler( try { // create the file if (Files.notExists(tempFilePath)) { + FileUtil.createDirectory(tempFilePath.getParent()); Files.createFile(tempFilePath); } // open the file