Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix startup stop on missing HTCACHE/SNAPSHOT directory
regere52370728a0f
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex b1f57d594..fdbe91dc0 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -698,8 +698,10 @@ public final class Switchboard extends serverSwitch {final long maxCacheSize =1024L * 1024L * Long.parseLong(getConfig(SwitchboardConstants.PROXY_CACHE_SIZE, "2")); // this is megabyteCache.init(this.htCachePath, this.peers.mySeed().hash, maxCacheSize);- this.snapshots = new Snapshots(new File(this.htCachePath, "SNAPSHOTS"));-+ final File snapshotdir = new File(this.htCachePath, "SNAPSHOTS");+ snapshotdir.mkdirs(); // create directory if missing+ this.snapshots = new Snapshots(snapshotdir);+// create the surrogates directoriesthis.surrogatesInPath =getDataPath(