Skip to content
Snippets Groups Projects
Commit f962247d authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

remove directories from file list

parent 939b1644
No related branches found
No related tags found
1 merge request!6add feature to load criteria file from resource and place all criteria files...
......@@ -128,7 +128,7 @@ public class FileListChecker extends Checker implements CorpusFunction {
presentFiles.addAll(FileTools.listFiles(Paths.get(c.getBaseDirectory().toURI())));
}
Set<URI> unexpectedFiles =
presentFiles.stream().filter((f) -> !expectedFiles.contains(f)).collect(Collectors.toSet());
presentFiles.stream().filter((f) -> !(expectedFiles.contains(f) || new File(f).isDirectory())).collect(Collectors.toSet());
Set<URI> missingFiles =
expectedFiles.stream().filter((f) -> !presentFiles.contains(f)).collect(Collectors.toSet());
if (!unexpectedFiles.isEmpty())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment