def copy_uploads(from_package, to_package):
    from_folder = user_data.get_document_uploads_folder_name(from_package)
    to_folder = user_data.get_document_uploads_folder_name(to_package)
    for filename in os.listdir(from_folder):
        from_path = os.path.join(from_folder, filename)
        to_path = os.path.join(to_folder, filename)
        copyfile(from_path, to_path)
        user_data.add_data_table_upload_filename(filename, document_name=to_package)
def copy_uploads(from_package, to_package):
    from_folder = user_data.get_document_uploads_folder_name(from_package)
    to_folder = user_data.get_document_uploads_folder_name(to_package)
    for filename in os.listdir(from_folder):
        from_path = os.path.join(from_folder, filename)
        to_path = os.path.join(to_folder, filename)
        copyfile(from_path, to_path)
        user_data.add_data_table_upload_filename(filename, document_name=to_package)