Refactored generateopf to detect OPS folder and print manifest entries in nested folders