Skip to content

Commit

Permalink
fix file-listing for projects without 'package.mo' files
Browse files Browse the repository at this point in the history
  • Loading branch information
N. Justus committed Feb 11, 2019
1 parent cd94f85 commit a9ef680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/de/thm/mope/tree/ModelicaProjectTree.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object ModelicaProjectTree {

def singleFiles(tree: TreeLike[Path], packageDirectories: List[Path]): List[Path] = {
tree.filterElements { path =>
!packageDirectories.forall(path.startsWith)
packageDirectories.find(path.startsWith).isEmpty
}.filterNot(Files.isDirectory(_))
}
}

0 comments on commit a9ef680

Please sign in to comment.