Julien Palard <julien+pyt...@palard.fr> added the comment:
Using `cp` on Debian Buster I'm having a better error message: $ touch foo $ cp foo bar/ cp: failed to access 'bar/': Not a directory >From copy.c (from Debian coreutils): /* Improve quality of diagnostic when a nonexistent dst_name ends in a slash and open fails with errno == EISDIR. */ if (dest_desc < 0 && dest_errno == EISDIR && *dst_name && dst_name[strlen (dst_name) - 1] == '/') dest_errno = ENOTDIR; ---------- nosy: +mdk _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35216> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com