def copy_ownership_info(src,dst,cur="",default=None):
    # TODO: how on win32?
    source = os.path.join(src,cur)
    target = os.path.join(dst,cur)
    if default is None:
        default = os.stat(src)
    if os.path.exists(source):
        info = os.stat(source)
    else:
        info = default
    if sys.platform != "win32":
        os.chown(target,info.st_uid,info.st_gid)
    if os.path.isdir(target):
        for nm in os.listdir(target):
            copy_ownership_info(src,dst,os.path.join(cur,nm),default)
Return a list of user-defined labels in the mailbox.
dataset/ETHPy150Open cloudmatrix/esky/esky/util.py/copy_ownership_info--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Babyl.get_labels