177178179180181182183184185186187
// ensures that the file exists assertTrue( f.exists() ); // create a backup m.saveState(); // ensures that the backup exists assertTrue( getBackupFile(f).exists() ); System.out.println("Memento after backup: " + getBackupFile(f).getPath());
256257258259260261262263264265266
System.out.println("Number of files in directory [" +tmpName+ "]: " + inventory.size()); // saves a snapshot in memento m.saveState(); // populates the new dir RandomFileMover mover = new RandomFileMover(getBackupFile(tmpFile),tmpFile,copyEnabled); mover.move();