From fd1dd6859bd597319cb8d2fd9497fc790bf3c383 Mon Sep 17 00:00:00 2001 From: allo Date: Mon, 16 Jan 2006 17:40:02 +0000 Subject: [PATCH] code cleanup git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1353 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/translator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/data/translator.java b/source/de/anomic/data/translator.java index 8fe184471..4a7fd1d6b 100644 --- a/source/de/anomic/data/translator.java +++ b/source/de/anomic/data/translator.java @@ -180,7 +180,7 @@ public class translator { } if(rightExtension){ try{ - relativePath=sourceFiles[i].getAbsolutePath().substring(baseDir.getAbsolutePath().length()+1, sourceFiles[i].getAbsolutePath().length()); //+1 to get the "/" + relativePath=sourceFiles[i].getAbsolutePath().substring(baseDir.getAbsolutePath().length()+1); //+1 to get the "/" relativePath = relativePath.replace(File.separatorChar, '/'); }catch(IndexOutOfBoundsException e){ serverLog.logSevere("Translator", "Error creating relative Path for "+sourceFiles[i].getAbsolutePath()); @@ -210,7 +210,7 @@ public class translator { while(it.hasNext()){ file=(File)it.next(); //cuts the sourcePath and prepends the destPath - file2=new File(destDir, file.getPath().substring(sourceDir.getPath().length(), file.getPath().length())); + file2=new File(destDir, file.getPath().substring(sourceDir.getPath().length())); //file2=new File(file.getPath().replaceFirst(sourceName.replaceAll("\\\\", "\\\\"), destName)); if(file.isDirectory() && !file.getName().equals(notdir)){ //file2.mkdirs();