Commit 3f15d7b6 authored by Koehorst, Jasper's avatar Koehorst, Jasper
Browse files

skip hidden files

parent ecacd19c
Pipeline #16989 failed with stage
......@@ -448,7 +448,10 @@ public class Search {
for (IRODSQueryResultRow irodsQueryResultSetResult : irodsQueryResultSetResults) {
String path = irodsQueryResultSetResult.getColumn(0) + "/" + irodsQueryResultSetResult.getColumn(1);
if (!new File("." + path).exists()) {
if (new File(path).getName().startsWith(".")) {
continue;
} else if (!new File("." + path).exists()) {
log.info("Obtaining " + new File(path).getName());
IRODSFileInputStream irodsFileInputStream = connection.fileFactory.instanceIRODSFileInputStream(path);
new File("." + new File(path).getParent()).mkdirs();
FileOutputStream fileOutputStream = new FileOutputStream(new File("." + path));
......@@ -456,8 +459,11 @@ public class Search {
irodsFileInputStream.close();
fileOutputStream.close();
}
// Load...
Domain domainTemp = new Domain("file://" + "." + path);
String config = "file://" + "." + path;
log.info("Config " + config);
Domain domainTemp = new Domain(config);
domain.getRDFSimpleCon().getModel().add(domainTemp.getRDFSimpleCon().getModel());
log.info("Triple size loaded " + domain.getRDFSimpleCon().getModel().size() + " from " + path);
domainTemp.close();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment