Skip to content
Snippets Groups Projects
Commit 4a6f834b authored by Manos Koukoutos's avatar Manos Koukoutos Committed by Etienne Kneuss
Browse files

Fix FilesWatcher when cd != input directory

parent d340fe60
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,9 @@ case class FilesWatcher(ctx: LeonContext, files: Seq[File]) {
val events = key.pollEvents()
if (events.exists{_.context match {
case (p: Path) => toWatch(p.toFile.getAbsoluteFile)
if (events.exists{ _.context match {
case (p: Path) =>
dirs exists { dir => toWatch(new File(dir, p.toFile.getName))}
case e => false
}}) {
val currentHashes = toWatch.map(md5file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment