infoDir.delete();
DirectoryInfoModel sourceModel = new DirectoryInfoModel(sourceDir.getPath(), "+\"*\"-\"*\"", "+\"*\"");
sourceModel.writeInfoToDirectory(infoDir.getPath());
DirectoryInfoModel infoModel = new DirectoryInfoModel(infoDir.toURL());
DirectoryInfoModel targetModel = new DirectoryInfoModel(targetDirectory.getPath(), "+\"*\"", "+\"*\"");
targetModel.compareTo(infoModel);