Author: toad
Date: 2009-01-24 22:49:21 +0000 (Sat, 24 Jan 2009)
New Revision: 25306
Modified:
branches/db4o/freenet/src/freenet/support/io/FilenameGenerator.java
Log:
Maybe fix Cooo's bug
Modified: branches/db4o/freenet/src/freenet/support/io/FilenameGenerator.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/io/FilenameGenerator.java
2009-01-24 22:43:28 UTC (rev 25305)
+++ branches/db4o/freenet/src/freenet/support/io/FilenameGenerator.java
2009-01-24 22:49:21 UTC (rev 25306)
@@ -123,7 +123,9 @@
*/
public void init(File dir, String prefix, Random random) throws
IOException {
this.random = random;
- File oldDir = FileUtil.getCanonicalFile(tmpDir);
+ // There is a problem with putting File's into db4o IIRC ... I
think we workaround this somewhere else?
+ // Symptoms are it trying to move even though the two dirs are
blatantly identical.
+ File oldDir = FileUtil.getCanonicalFile(new
File(tmpDir.getPath()));
File newDir = FileUtil.getCanonicalFile(dir);
System.err.println("Old: "+oldDir+" prefix "+this.prefix+" from
"+tmpDir+" old path "+tmpDir.getPath()+" old parent "+tmpDir.getParent());
System.err.println("New: "+newDir+" prefix "+prefix+" from
"+dir);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs