Author: niallp
Date: Tue Sep 28 23:26:52 2010
New Revision: 1002416

URL: http://svn.apache.org/viewvc?rev=1002416&view=rev
Log:
IO-168 Always return false from isSymlink() for windows

Modified:
    commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java

Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java?rev=1002416&r1=1002415&r2=1002416&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java 
(original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java Tue 
Sep 28 23:26:52 2010
@@ -2139,6 +2139,9 @@ public class FileUtils {
         if (file == null) {
             throw new NullPointerException("File must not be null");
         }
+        if (FilenameUtils.isSystemWindows()) {
+            return false;
+        }
         File fileInCanonicalDir = null;
         if (file.getParent() == null) {
             fileInCanonicalDir = file;


Reply via email to