From abc314ac845eef2b6b26faf37f4aad69e0d121f7 Mon Sep 17 00:00:00 2001 From: Raphael Jolly Date: Tue, 16 Apr 2013 10:32:35 +0200 Subject: AbstractFile.getDirectory does not return null when outDir is "." --- src/reflect/scala/reflect/io/Path.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reflect/scala/reflect/io') 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 -- cgit v1.2.3