File thumbnailsDirectory = new DirectoriesModel(baseDirectory+thumbnailsDirectoryPath).getDirectory();
ItemsModel imagesModel = new ItemsModel(baseDirectory, currentDirectory, extensions);
if(!thumbnailsDirectory.exists()) {
thumbnailsDirectory.mkdir();
}
generateThumbnails(thumbnailsDirectory.getAbsolutePath()+"/", imagesModel.asList(), writer, currentDirectory);
}
private void generateThumbnails(String thumbnailsDirectory, List<File> files, Writer writer, String currentDirectory) {
File thumbsDirFile = new File(thumbnailsDirectory);
for (File file : files) {