def CopyFlat(source, target):
    count = 0
    for root, dirs, files in os.walk(source):
        for file in files:
            count += 1
            name = os.path.join(root, file)
            shutil.copy(name, target)