public static void registerFileConflict(EverBoxObject ebo){
log.infof("更新本地文件信息到数据库 %s", ebo.getPath());
File f = new File(EverboxConfig.getRealPath(ebo));
if(!f.exists())
return;
FileEditTimeConflict fetc = dao.fetch(FileEditTimeConflict.class, ebo.getPath());
if(fetc != null) {
fetc.setLastModify(ebo.getEditTime());
fetc.setApiVerion(EverboxConfig.DB_API_VERSION);
dao.update(fetc);
} else {
fetc = new FileEditTimeConflict();
fetc.setPath(ebo.getPath());
fetc.setLastModify(ebo.getEditTime());
fetc.setApiVerion(EverboxConfig.DB_API_VERSION);
dao.insert(fetc);
}
log.info("更新完成");
}