diff options
author | Raphael Jolly <rjolly@users.sourceforge.net> | 2013-04-16 10:32:35 +0200 |
---|---|---|
committer | Raphael Jolly <rjolly@users.sourceforge.net> | 2013-04-22 11:25:08 +0200 |
commit | abc314ac845eef2b6b26faf37f4aad69e0d121f7 (patch) | |
tree | 0b7a54edde46cfc099286ceefd13b82a62baed5e | |
parent | 1d54f26b9a87c8df6a3b0e4472147d1ffb9037f1 (diff) | |
download | scala-abc314ac845eef2b6b26faf37f4aad69e0d121f7.tar.gz scala-abc314ac845eef2b6b26faf37f4aad69e0d121f7.tar.bz2 scala-abc314ac845eef2b6b26faf37f4aad69e0d121f7.zip |
AbstractFile.getDirectory does not return null when outDir is "."
-rw-r--r-- | src/reflect/scala/reflect/io/Path.scala | 2 |
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 |