From 225b78317f965e43526739fe554bb50bfa9bd858 Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Thu, 9 Dec 2021 13:13:37 -0500 Subject: [PATCH] Revert usage of File.separator File.separator doesn't appear to work on Windows. It has to be "/", not "\". See: https://github.com/bisq-network/bisq/pull/5909#pullrequestreview-827992563 --- .../bisq/core/dao/state/storage/BsqBlocksStorageService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/dao/state/storage/BsqBlocksStorageService.java b/core/src/main/java/bisq/core/dao/state/storage/BsqBlocksStorageService.java index 4ab29d81e9..e86be58127 100644 --- a/core/src/main/java/bisq/core/dao/state/storage/BsqBlocksStorageService.java +++ b/core/src/main/java/bisq/core/dao/state/storage/BsqBlocksStorageService.java @@ -123,7 +123,9 @@ public class BsqBlocksStorageService { } for (String fileName : fileNames) { File destinationFile = new File(storageDir, fileName); - FileUtil.resourceToFile(resourceDir + File.separator + fileName, destinationFile); + // File.separator doesn't appear to work on Windows. It has to be "/", not "\". + // See: https://github.com/bisq-network/bisq/pull/5909#pullrequestreview-827992563 + FileUtil.resourceToFile(resourceDir + "/" + fileName, destinationFile); } log.info("Copying {} resource files took {} ms", fileNames.size(), System.currentTimeMillis() - ts); } catch (ResourceNotFoundException ignore) {