* @param front The front image field index.
* @param back The back image field index.
* @param cd The media image field index.
*/
protected void setImages(String filename, DcObject dco, int front, int back, int cd) {
Settings settings = DcModules.get(module).getSettings();
if (!settings.getBoolean(DcRepository.ModuleSettings.stImportLocalArt))
return;
String directory = new File(filename).getParent();
boolean recurse = settings.getBoolean(DcRepository.ModuleSettings.stImportLocalArtRecurse);
Directory dir = new Directory(directory, recurse, new String[] {"jpg", "jpeg", "png", "gif"});
Collection<String> files = dir.read();
boolean frontSet = false;
boolean backSet = false;