From e174d1db2b27a2a9018169cb0dc03635df8de11d Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Wed, 5 Apr 2017 01:55:57 +0000 Subject: Add ScalaXRay (sxr) plugin --- libraries/file/file.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libraries') diff --git a/libraries/file/file.scala b/libraries/file/file.scala index d420964..7482c9b 100644 --- a/libraries/file/file.scala +++ b/libraries/file/file.scala @@ -69,8 +69,9 @@ trait Module { val map = files.sorted.flatMap { base => val b = base.getCanonicalFile.string if ( base.isDirectory ) { - base.listRecursive.map { f => - f -> f.getCanonicalFile.string.stripPrefix( b ).stripPrefix( File.separator ) + base.listRecursive.collect { + case f if !f.isDirectory => + f -> f.getCanonicalFile.string.stripPrefix( b ).stripPrefix( File.separator ) } } else { Seq( base -> base.getName ) -- cgit v1.2.3