Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
resource observer: support for yacyroot\DATA on an NTFS hardlink (Windows)
lotus7f868ca3c204
diff --git a/source/de/anomic/tools/diskUsage.java b/source/de/anomic/tools/diskUsage.javaindex ec179e0e8..44ccce238 100644--- a/source/de/anomic/tools/diskUsage.java+++ b/source/de/anomic/tools/diskUsage.java@@ -303,7 +303,7 @@ public class diskUsage {}if (path.length() < 6)return;- yacyUsedVolumes.add(path.substring(0, 1));+ yacyUsedVolumes.add(path);}private static HashMap<String, long[]> dfWindows() {@@ -313,7 +313,7 @@ public class diskUsage {processArgs.add(windowsCommand);processArgs.add("/c");processArgs.add("dir");- processArgs.add(yacyUsedVolumes.get(i) + ":\\");+ processArgs.add("\"" + yacyUsedVolumes.get(i) + "\"");try {final List<String> lines = consoleInterface.getConsoleOutput(processArgs, log);@@ -376,6 +376,10 @@ public class diskUsage {}private static void checkPathUsageWindows(final String path) {+ // we would need to ask every path by "dir" as asking the root is not hardlink-proof:+ // yacyUsedVolumes.add(path);+ return;+ /*int index = -1;final String sub = path.substring(0, 1); // ?? nur ein character?try {@@ -386,6 +390,7 @@ public class diskUsage {}if (index < 0)yacyUsedVolumes.add(sub);+ */}}