You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by im...@apache.org on 2006/02/17 12:52:21 UTC

svn commit: r378489 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java

Author: imario
Date: Fri Feb 17 03:52:16 2006
New Revision: 378489

URL: http://svn.apache.org/viewcvs?rev=378489&view=rev
Log:
be more defensive

Modified:
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java?rev=378489&r1=378488&r2=378489&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java (original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java Fri Feb 17 03:52:16 2006
@@ -83,7 +83,7 @@
     {
     	// JDK BUG: 6192331
         // if (!file.exists())
-        if (!file.exists() && file.length() == 0)
+        if (!file.exists() && file.length() < 1)
         {
             return FileType.IMAGINARY;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org