mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-03 18:56:59 +01:00
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
This commit is contained in:
parent
d74bffb595
commit
225b78317f
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue