if(directory1.exists()) {
FileUtils.deleteDirectory(directory1);
}
FileUtils.copyDirectory(source, directory1);
// remove all files besides month 2 and 5
for(File file : FileUtils.listFiles(directory1, new RegexFileFilter("world\\.20040[^25].*\\.tiff"), null)) {
assertTrue(file.delete());
}
// remove all mosaic related files
for(File file : FileUtils.listFiles(directory1, new RegexFileFilter("time_geotiff.*"), null)) {
assertTrue(file.delete());
}
// move month 5 to another dir, we'll harvet it later
String monthFiveName = "world.200405.3x5400x2700.tiff";
File monthFive = new File(directory1, monthFiveName);