summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/io
diff options
context:
space:
mode:
authorRaphael Jolly <rjolly@users.sourceforge.net>2013-04-16 10:32:35 +0200
committerRaphael Jolly <rjolly@users.sourceforge.net>2013-04-22 11:25:08 +0200
commitabc314ac845eef2b6b26faf37f4aad69e0d121f7 (patch)
tree0b7a54edde46cfc099286ceefd13b82a62baed5e /src/reflect/scala/reflect/io
parent1d54f26b9a87c8df6a3b0e4472147d1ffb9037f1 (diff)
downloadscala-abc314ac845eef2b6b26faf37f4aad69e0d121f7.tar.gz
scala-abc314ac845eef2b6b26faf37f4aad69e0d121f7.tar.bz2
scala-abc314ac845eef2b6b26faf37f4aad69e0d121f7.zip
AbstractFile.getDirectory does not return null when outDir is "."
Diffstat (limited to 'src/reflect/scala/reflect/io')
-rw-r--r--src/reflect/scala/reflect/io/Path.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/io/Path.scala b/src/reflect/scala/reflect/io/Path.scala
index 56d4faed99..1e1fb5a98b 100644
--- a/src/reflect/scala/reflect/io/Path.scala
+++ b/src/reflect/scala/reflect/io/Path.scala
@@ -209,7 +209,7 @@ class Path private[io] (val jfile: JFile) {
}
def isDirectory = {
if (Statistics.canEnable) Statistics.incCounter(IOStats.fileIsDirectoryCount)
- try jfile.isDirectory() catch { case ex: SecurityException => false }
+ try jfile.isDirectory() catch { case ex: SecurityException => jfile.getPath == "." }
}
def isAbsolute = jfile.isAbsolute()
def isEmpty = path.length == 0