Skip to content

copy_file raises FileNotFoundError when src is a directory #89397

@AlexGrund

Description

@AlexGrund
mannequin
BPO 45234
Nosy @gpshead, @ambv, @pablogsal, @miss-islington, @Fidget-Spinner, @akulakov
PRs
  • bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() #28421
  • [3.9] bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) #28507
  • [3.10] bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) #28508
  • 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 2021-09-22.22:42:32.902>
    created_at = <Date 2021-09-17.14:04:17.038>
    labels = ['library', '3.9', '3.10', '3.11']
    title = 'copy_file raises FileNotFoundError when src is a directory'
    updated_at = <Date 2021-10-04.19:18:41.619>
    user = 'https://bugs.python.org/AlexGrund'

    bugs.python.org fields:

    activity = <Date 2021-10-04.19:18:41.619>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-22.22:42:32.902>
    closer = 'pablogsal'
    components = ['Library (Lib)']
    creation = <Date 2021-09-17.14:04:17.038>
    creator = 'Alex Grund'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45234
    keywords = ['patch']
    message_count = 8.0
    messages = ['402057', '402061', '402374', '402387', '402389', '402395', '402473', '403149']
    nosy_count = 7.0
    nosy_names = ['gregory.p.smith', 'lukasz.langa', 'pablogsal', 'miss-islington', 'Alex Grund', 'kj', 'andrei.avk']
    pr_nums = ['28421', '28507', '28508']
    priority = None
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45234'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions