another bugfix for the windows drive check

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4896 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
det 17 years ago
parent b416af7568
commit 6afeb535cd

@ -364,14 +364,26 @@ nextLine:
File file = new File("DATA");
String path = null;
try { path = file.getCanonicalPath().toString(); } catch (IOException e) { return; }
try { path = file.getCanonicalPath().toString(); } catch (IOException e) {
errorMessage = "Cant get DATA directory";
usable = false;
return;
}
if (path.length() < 6)
return;
int index = -1;
try { index = usedVolumes.indexOf(path.substring(0, 1)); } catch (IndexOutOfBoundsException e) { return; }
try { index = allVolumes.indexOf(path.substring(0, 1)); } catch (IndexOutOfBoundsException e) {
errorMessage = "Start volume not found in all volumes";
usable = false;
return;
}
if (index > -1)
usedVolumes.set(index, true);
else {
errorMessage = "No start volume found";
usable = false;
}
}
public void dfWindows () {

Loading…
Cancel
Save