Skip to content

Commit 4b6c0ae

Browse files
hansonrhansonr
authored andcommitted
sets File.isDirectory() to return false, not true
1 parent 79cfe3b commit 4b6c0ae

File tree

1 file changed

+2
-1
lines changed
  • sources/net.sf.j2s.java.core/src/java/io

1 file changed

+2
-1
lines changed

sources/net.sf.j2s.java.core/src/java/io/File.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,8 @@ public boolean isDirectory() {
803803
// return ((fs.getBooleanAttributes(this) & FileSystem.BA_DIRECTORY)
804804
// != 0);
805805
//
806-
return true;
806+
// BH 2019.09.23 return true;
807+
return false;
807808
}
808809

809810
/**

0 commit comments

Comments
 (0)