Skip to content
Snippets Groups Projects
Commit 067fc501 authored by tpylak's avatar tpylak
Browse files

SE-136 yeastx: ignore folders without tsv files

SVN: 12323
parent cfe9020b
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,10 @@ public class BatchDataSetHandler implements IDataSetHandler
{
return false;
}
if (DatasetMappingUtil.isMappingFilePresent(batchDir) == false)
{
return false;
}
List<File> files = listAll(batchDir);
// Do not treat empty directories as faulty.
// The other reason of this check is that this handler is sometimes no able to delete
......
......@@ -203,6 +203,13 @@ class DatasetMappingUtil
return false;
}
/** @return false if no potential mapping files exist in the specified directory */
public static boolean isMappingFilePresent(File batchDir)
{
List<File> potentialMappingFiles = listPotentialMappingFiles(batchDir);
return potentialMappingFiles.size() > 0;
}
private static File tryGetMappingFile(File batchDir, LogUtils log)
{
List<File> potentialMappingFiles = listPotentialMappingFiles(batchDir);
......
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