mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Prevent a "URI is not hierarchical" IllegalArgumentException from the expression, 'new File(dirUrl.toURI())', which occurs on Linux & Windows when listing the resource directory of BSQ blocks. Adapt a solution from StackOverflow which uses two separate code paths depending on the environment, into the new method 'FileUtil::listResourceDirectory'. The issue is caused by the resource URL taking one of the two forms: file:/Users/[USER]/Java/bisq/bisq/p2p/out/production/resources/BsqBlocks_BTC_MAINNET jar:file:...p2p.jar!/BsqBlocks_BTC_MAINNET depending on whether the system is OSX or not. |
||
---|---|---|
.. | ||
.tx | ||
src | ||
update_translations.sh |