public long getFiles() {
return files.getLong();
}
public static void main(String argv[]) throws Exception {
XFile targetDirectory = new XFile("C:\\temp\\foo2");
XFile sourceDir = new XFile("C:\\temp\\Zahlungen");
XFile infoDir = new XFile("C:\\temp\\infoDir");
// targetDirectory.delete();
// targetDirectory.mkdirs();
// targetDirectory.mkdir();
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);