Skip to content

shutil.move fails to move symlink (Invalid cross-device link) #70978

Closed
@Unode

Description

@Unode
mannequin
BPO 26791
Nosy @tarekziade, @websurfer5, @iritkatriel
PRs
  • bpo-26791: update shutil.move() to provide the same symlink move behavior as the mv shell when moving a symlink into a directory that is the target of the symlink #21759
  • 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 = None
    created_at = <Date 2016-04-17.16:58:17.148>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'shutil.move fails to move symlink (Invalid cross-device link)'
    updated_at = <Date 2021-11-30.12:28:21.452>
    user = 'https://bugs.python.org/Unode'

    bugs.python.org fields:

    activity = <Date 2021-11-30.12:28:21.452>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-04-17.16:58:17.148>
    creator = 'Unode'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 26791
    keywords = ['patch']
    message_count = 6.0
    messages = ['263616', '263617', '263654', '374648', '374916', '407371']
    nosy_count = 5.0
    nosy_names = ['tarek', 'Unode', 'Jeffrey.Kintscher', 'iritkatriel', 'Murray Wilson']
    pr_nums = ['21759']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue26791'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixes3.12only security fixes3.13bugs and security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions