use of net.sourceforge.processdash.tool.bridge.ResourceFilter in project processdash by dtuma.
the class BridgedWorkingDirectory method syncTimestampIsRecent.
private boolean syncTimestampIsRecent() {
try {
String timestamp = getMetadata(SYNC_TIMESTAMP);
if (timestamp == null)
return false;
ResourceFilter filter = ResourceFilterFactory.getForRequest(Collections.singletonMap(ResourceFilterFactory.LAST_MOD_PARAM, timestamp));
ResourceCollectionInfo changedFiles = new ResourceListing(client.localCollection, filter);
return changedFiles.listResourceNames().isEmpty();
} catch (Exception e) {
return false;
}
}
Aggregations