[Python] How can I move a sub-folder to another main folder within same s3 bucket boto3?

Discussão em 'Python' iniciado por Stack, Setembro 1, 2025.

  1. Stack

    Stack Membro Participativo

    dst= s3.get_object(Bucket='bucket_name', )

    copy_source = {
    'Bucket': 'bucket_name',
    'Key': 'folder_path'
    }

    dst.copy(copy_source,'Key': 'target_folder_path')

    Continue reading...

Compartilhe esta Página