this is the code I'm trying to run in python 3.10:
def copyComplete(source, target):
    shutil.copy2(source, target)
    st = os.stat(source)
    os.chown(target, st.st_uid, st.st_gid)
It throws this error:
AttributeError: module 'os' has no attribute 'chown'
How do I fix this problem?