for (File f : addedFiles) {
LOGGER.debug("File automatically added: " + f.getName());
}
// false: don't create the folder if it doesn't exist i.e. find the folder
TranscodeVirtualFolder transcodeFolder = getTranscodeFolder(false);
for (DLNAResource f : removedFiles) {
getChildren().remove(f);
if (transcodeFolder != null) {
for (int j = transcodeFolder.getChildren().size() - 1; j >= 0; j--) {
if (transcodeFolder.getChildren().get(j).getName().equals(f.getName())) {
transcodeFolder.getChildren().remove(j);
}
}
}
}