Skip to content

shutil.copy raises IsADirectoryError when the directory does not actually exist #87385

@jerpint

Description

@jerpint
mannequin
BPO 43219
Nosy @gpshead, @ambv, @eryksun, @pablogsal, @miss-islington, @kulikjak, @akulakov, @jerpint
PRs
  • bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError #27049
  • [3.10] bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError (GH-27049) #27081
  • [3.9] bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError (GH-27049) #27082
  • bpo-43219: handle Solaris as well #27257
  • [3.9] bpo-43219: skip Solaris in the test as well (GH-27257) #27267
  • [3.10] bpo-43219: skip Solaris in the test as well (GH-27257) #27268
  • [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 = 'https://github.com/gpshead'
    closed_at = <Date 2021-07-10.15:03:04.309>
    created_at = <Date 2021-02-14.05:16:28.392>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'shutil.copy raises IsADirectoryError when the directory does not actually exist'
    updated_at = <Date 2021-10-04.19:18:42.219>
    user = 'https://github.com/jerpint'

    bugs.python.org fields:

    activity = <Date 2021-10-04.19:18:42.219>
    actor = 'pablogsal'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2021-07-10.15:03:04.309>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2021-02-14.05:16:28.392>
    creator = 'jerpint'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43219
    keywords = ['patch']
    message_count = 20.0
    messages = ['386932', '386933', '386935', '387134', '397060', '397061', '397119', '397235', '397236', '397237', '397865', '397893', '397897', '397898', '397901', '402022', '402373', '402386', '402394', '403155']
    nosy_count = 9.0
    nosy_names = ['gregory.p.smith', 'lukasz.langa', 'eryksun', 'pablogsal', 'miss-islington', 'kulikjak', 'Alex Grund', 'andrei.avk', 'jerpint']
    pr_nums = ['27049', '27081', '27082', '27257', '27267', '27268', '28507', '28508']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue43219'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions