Make dir if not exists

This commit is contained in:
chimp1984 2021-01-01 17:27:11 -05:00
parent 67c57eb202
commit 9e299f045c
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -85,6 +85,9 @@ public class InventoryMonitor implements SetupListener {
// We get more connectivity issues. Cleaning tor cache files helps usually for those problems.
File torDir = new File(appDir, "tor");
if (!torDir.exists()) {
torDir.mkdir();
}
TorSetup torSetup = new TorSetup(torDir);
torSetup.cleanupTorFiles(() -> {
networkNode = getNetworkNode(torDir);