diff options
-rw-r--r-- | main/src/main/MainRunner.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/main/MainRunner.scala b/main/src/main/MainRunner.scala index 7c9d944b..6b091ac7 100644 --- a/main/src/main/MainRunner.scala +++ b/main/src/main/MainRunner.scala @@ -35,7 +35,8 @@ class MainRunner(val config: ammonite.main.Cli.Config, var stateCache = stateCache0 override def watchAndWait(watched: Seq[(os.Path, Long)]) = { - printInfo(s"Watching for changes to ${watched.length} files... (Ctrl-C to exit)") + val dirCount = watched.count(f => os.isDir(f._1)) + printInfo(s"Watching for changes to ${dirCount} dirs and ${watched.length - dirCount} files... (Ctrl-C to exit)") def statAll() = watched.forall{ case (file, lastMTime) => Interpreter.pathSignature(file) == lastMTime } |