summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/io/Path.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/io/Path.scala b/src/compiler/scala/tools/nsc/io/Path.scala
index 8e4c58a35e..df1736f688 100644
--- a/src/compiler/scala/tools/nsc/io/Path.scala
+++ b/src/compiler/scala/tools/nsc/io/Path.scala
@@ -109,7 +109,7 @@ class Path private[io] (val jfile: JFile)
// derived from identity
def root: Option[Path] = roots find (this startsWith _)
- def segments: List[String] = (path split separator).toList filterNot (_.isEmpty)
+ def segments: List[String] = (path split separator).toList filterNot (_.length == 0)
def parent: Option[Path] = Option(jfile.getParent()) map Path.apply
def parents: List[Path] = parent match {
case None => Nil