DataFolder.prune

DataFolder.prune(name=None)

Remove any empty groups from the objectFolder (and subgroups).

Returns

A copy of thte pruned objectFolder.