def make_dir(*args, **kargs): diritems = func(*args, **kargs) if not diritems: return for di in diritems: common.add_item(di) common.end_dir()