Author: toad
Date: 2007-12-15 22:08:22 +0000 (Sat, 15 Dec 2007)
New Revision: 16581
Modified:
trunk/freenet/src/freenet/support/io/FileUtil.java
Log:
Take out the test for zero length - if we ran into full disk we would have
thrown already.
Modified: trunk/freenet/src/freenet/support/io/FileUtil.java
===================================================================
--- trunk/freenet/src/freenet/support/io/FileUtil.java 2007-12-15 21:42:38 UTC
(rev 16580)
+++ trunk/freenet/src/freenet/support/io/FileUtil.java 2007-12-15 22:08:22 UTC
(rev 16581)
@@ -152,10 +152,6 @@
if(!orig.exists()) {
throw new IllegalArgumentException("Original doesn't exist!");
}
- if(orig.length() == 0) {
- // 99% of the time this indicates a bug resulting in clobbering
files in zero disk space! If we need to support empty files anywhere we can add
an override.
- throw new IllegalArgumentException("Original is empty!");
- }
if (!orig.renameTo(dest)) {
// Not supported on some systems (Windows)
if (!dest.delete()) {