At first, that excluded absolutely everything. Took me a minute to spot why:
cat = ao.getCategory();
Um no, you want:
cat = obj.getCategory();
It's also no longer necessary to include the
path information - the jAlbum method keeps track of that on its own. So, we end up with:
private void exUnsupp(AlbumObject ao) {
for(AlbumObject obj : ao.getChildren()) {
cat = obj.getCategory();
if(obj.isIncluded() && obj.isFolder()) exUnsupp(obj);
else if(obj.isIncluded() && cat != Category.image && cat != Category.video) {
obj.setIncluded(false);
AlbumSynchronizer AlSy = new AlbumSynchronizer(engine);
AlSy.delete(obj);
}
ao.setChildren(ao.getChildren());
}
}
I'll play with it some more, just to make sure it's not a phantom solution.