Skip to content

shutil.move does not work properly with pathlib.Path objects #83321

@LucaPaganin

Description

@LucaPaganin
BPO 39140
Nosy @tirkarthi
Superseder
  • bpo-32689: shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory
  • Files
  • mover.tgz
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-12-27.03:13:08.929>
    created_at = <Date 2019-12-26.23:39:08.032>
    labels = ['type-bug', '3.7']
    title = 'shutil.move does not work properly with pathlib.Path objects'
    updated_at = <Date 2019-12-27.03:13:08.928>
    user = 'https://bugs.python.org/LucaPaganin'

    bugs.python.org fields:

    activity = <Date 2019-12-27.03:13:08.928>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-12-27.03:13:08.929>
    closer = 'xtreak'
    components = []
    creation = <Date 2019-12-26.23:39:08.032>
    creator = 'Luca Paganin'
    dependencies = []
    files = ['48803']
    hgrepos = []
    issue_num = 39140
    keywords = []
    message_count = 2.0
    messages = ['358891', '358894']
    nosy_count = 2.0
    nosy_names = ['xtreak', 'Luca Paganin']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '32689'
    type = 'behavior'
    url = 'https://bugs.python.org/issue39140'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifetype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions