Skip to content

Support creating hardlink using pathlib #72794

Closed

Description

@cool-RR
mannequin
BPO 28608
Nosy @pitrou, @tonal, @cool-RR, @tirkarthi
Superseder
  • bpo-26978: Implement pathlib.Path.link (Using os.link)
  • 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-04-29.18:03:12.357>
    created_at = <Date 2016-11-04.07:54:44.507>
    labels = ['3.8', 'type-feature', 'library']
    title = 'Support creating hardlink using `pathlib`'
    updated_at = <Date 2019-04-29.18:03:12.356>
    user = 'https://github.com/cool-RR'

    bugs.python.org fields:

    activity = <Date 2019-04-29.18:03:12.356>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-29.18:03:12.357>
    closer = 'xtreak'
    components = ['Library (Lib)']
    creation = <Date 2016-11-04.07:54:44.507>
    creator = 'cool-RR'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 28608
    keywords = []
    message_count = 4.0
    messages = ['330573', '330674', '330809', '341108']
    nosy_count = 4.0
    nosy_names = ['pitrou', 'shura_zam', 'cool-RR', 'xtreak']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '26978'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue28608'
    versions = ['Python 3.8']

    Activity

    1. added
      3.7 (EOL)
      stdlib
      type-feature
      on Nov 4, 2016
    2. tonal commented on Nov 28, 2018

      tonalmannequin
      Mannequin
    3. tirkarthi commented on Nov 29, 2018

      @tirkarthi
      Member

      Just to add to this os.link supports path-like objects. Adding @pitrou to take a call on this.

    4. added
      3.8 (EOL)
      and removed
      3.7 (EOL)
      on Nov 29, 2018
    5. pitrou commented on Nov 30, 2018

      @pitrou
      Member

      Since Path already supports symlinking, it would be reasonable to add hardlinking (e.g. as Path.link_to). But as you said one may as well call os.link(path1, path2).

    6. tirkarthi commented on Apr 29, 2019

      @tirkarthi
      Member

      Closing this as a duplicate of bpo-26978 which has an open PR with comments from @pitrou.

      Thanks

    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)stdlibtype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions