[New-bugs-announce] [issue45234] copy_file raises FileNotFoundError when src is a directory
Alex Grund
report at bugs.python.org
Fri Sep 17 10:04:17 EDT 2021
New submission from Alex Grund <flamefire89 at gmail.com>:
After https://bugs.python.org/issue43219 was resolved the function now shows faulty behavior when the source is a directory:
`copy_file('/path/to/dir', '/target')` throws a FileNotFoundError while previously it was a IsADirectoryError which is clearly correct.
See https://github.com/python/cpython/pull/27049#issuecomment-921647431
----------
components: Library (Lib)
messages: 402057
nosy: Alex Grund
priority: normal
severity: normal
status: open
title: copy_file raises FileNotFoundError when src is a directory
versions: Python 3.10, Python 3.11, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45234>
_______________________________________
More information about the New-bugs-announce
mailing list