Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fixed problem with broken notifier image, occurred only at initial start-up

orbiterbeb772d6cd86
diff --git a/source/yacy.java b/source/yacy.java
index 30e12da80..172fb3b1b 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -320,6 +320,7 @@ public final class yacy {
// create some directories
final File htRootPath = new File(homePath, sb.getConfig("htRootPath", "htroot"));
final File htDocsPath = new File(homePath, sb.getConfig("htDocsPath", "DATA/HTDOCS"));
+ if (!(htDocsPath.exists())) htDocsPath.mkdir();
//final File htTemplatePath = new File(homePath, sb.getConfig("htTemplatePath","htdocs"));
// create default notifier picture
@@ -329,7 +330,6 @@ public final class yacy {
new File(htDocsPath, "notifier.gif"));
} catch (IOException e) {}
- if (!(htDocsPath.exists())) htDocsPath.mkdir();
final File htdocsDefaultReadme = new File(htDocsPath, "readme.txt");
if (!(htdocsDefaultReadme.exists())) try {serverFileUtils.write((
"This is your root directory for individual Web Content\r\n" +